-
Notifications
You must be signed in to change notification settings - Fork 7
/
base-test.js
34 lines (33 loc) · 926 Bytes
/
base-test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const assert = require("assert");
const runLintWithFixtures = require("./lib/runLintWithFixtures");
describe("base", () => {
it("should get expected errors and warninigs with base config", async () => {
const result = await runLintWithFixtures("base");
assert.deepStrictEqual(result, {
"error.js": {
errors: [
"no-var",
"no-unused-vars",
"getter-return",
"no-self-assign",
"no-import-assign",
"require-atomic-updates",
"no-async-promise-executor",
"default-param-last",
"prefer-regex-literals"
],
warnings: ["no-useless-return"]
},
"warning.js": {
warnings: [
"import/no-duplicates",
"import/no-duplicates",
"array-callback-return",
"max-params",
"max-nested-callbacks"
]
},
"ok.js": {}
});
});
});