Skip to content

Commit 361d6b4

Browse files
committed
fix test runner failed error
1 parent 9a7d3e6 commit 361d6b4

File tree

6 files changed

+36
-38
lines changed

6 files changed

+36
-38
lines changed

package-lock.json

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"start": "webpack --config webpack.config.js",
99
"build": "webpack --config webpack.config.js --prod",
10-
"test": "mochapack test/**/*.spec.js",
10+
"test": "mochapack \"test/**/*.spec.js\"",
1111
"prepublishOnly": "npm run build",
1212
"lint": "eslint src",
1313
"coverLocal": "cross-env NODE_ENV=coverage nyc --reporter=lcov --reporter=text npm run test",

src/parser.all.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { parse as postgresql } from '../pegjs/postgresql.pegjs'
77
import { parse as transactsql } from '../pegjs/transactsql.pegjs'
88

99
export default {
10-
bigquery,
11-
db2,
12-
hive,
13-
mysql,
14-
mariadb,
15-
postgresql,
16-
transactsql,
17-
}
10+
bigquery,
11+
db2,
12+
hive,
13+
mysql,
14+
mariadb,
15+
postgresql,
16+
transactsql,
17+
}

src/parser.single.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {parse} from '../pegjs/mysql.pegjs';
1+
import { parse } from '../pegjs/mysql.pegjs'
22

33
export default {
44
[PARSER_NAME]: parse,
5-
};
5+
}

tests-index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var req = require.context('./test', true, /\.spec$/);
1+
const req = require.context('./test', true, /\.spec.js$/);
22
req.keys().forEach(req);
33

44
require('vscode-mocha-hmr')(module);

typegen.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ const path = require('path');
33
const peg = require('pegjs');
44
const util = require('util');
55

6-
7-
86
const syntax = fs.readFileSync(path.resolve(__dirname, './pegjs/postgresql.pegjs'), 'utf-8')
97
const ast = peg.parser.parse(syntax);
108

0 commit comments

Comments
 (0)