mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-05 08:13:14 +08:00
Minor refactor
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import { expect } from 'chai';
|
||||
import * as peggy from 'peggy';
|
||||
import loon from '../../src/core/proxy-utils/grammars/loon';
|
||||
import getLoonParser from '../../src/core/proxy-utils/peggy/loon';
|
||||
import testcases from './testcases';
|
||||
import { describe, it } from 'mocha';
|
||||
|
||||
const parser = peggy.generate(loon);
|
||||
const parser = getLoonParser();
|
||||
|
||||
describe('Loon', function() {
|
||||
describe('shadowsocks', function() {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import * as peggy from 'peggy';
|
||||
import qx from '../../src/core/proxy-utils/grammars/qx';
|
||||
import getQXParser from '../../src/core/proxy-utils/peggy/qx';
|
||||
import { expect } from 'chai';
|
||||
import testcases from './testcases';
|
||||
import { describe, it } from 'mocha';
|
||||
|
||||
|
||||
|
||||
const parser = peggy.generate(qx);
|
||||
const parser = getQXParser();
|
||||
|
||||
describe('QX', function() {
|
||||
describe('shadowsocks', function() {
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import * as peggy from 'peggy';
|
||||
import surge from '../../src/core/proxy-utils/grammars/surge';
|
||||
import getSurgeParser from '../../src/core/proxy-utils/peggy/surge';
|
||||
import { expect } from 'chai';
|
||||
import testcases from './testcases';
|
||||
import { describe, it } from 'mocha';
|
||||
|
||||
|
||||
const parser = peggy.generate(surge);
|
||||
const parser = getSurgeParser();
|
||||
|
||||
describe('Surge', function() {
|
||||
describe('shadowsocks', function() {
|
||||
|
||||
Reference in New Issue
Block a user