Skip to content

Commit

Permalink
wip.
Browse files Browse the repository at this point in the history
  • Loading branch information
薛定谔的猫 committed Sep 30, 2017
1 parent 9497c82 commit 00b8888
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/lib/linter.js
Expand Up @@ -1562,15 +1562,16 @@ describe("Linter", () => {
});

// https://github.com/eslint/eslint/issues/9366
it("rules should handle regex option correctly", () => {
it("rules should parse regex option correctly", () => {
const config = {};
const code = [

// "\\\\W" equals to "\\W" in source code.
"/* eslint id-match: [2, \"^(([^$\\\\W]|\\\\$[a-f\\\\d]{2})+|[$_]\\\\w*|[^\\\\W\\\\d]\\\\w*|[A-Z]([A-Z_]*[A-Z])?)$\", {properties: true}] */",
"var is$2dvoid = 0;"
].join("\n");

let messages = linter.verify(code, config, filename, false);
const messages = linter.verify(code, config, filename, false);

assert.equal(messages.length, 0);
});
Expand Down

0 comments on commit 00b8888

Please sign in to comment.