Minor refactor

This commit is contained in:
Peng-YM
2022-06-16 11:19:00 +08:00
parent f76096f244
commit 56ada242d2
13 changed files with 38 additions and 45 deletions

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {