Skip to content

Commit

Permalink
test: fix flat config linter tests to use Linter in flat config mode (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Oct 2, 2023
1 parent 1aa26df commit 2665552
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/lib/linter/linter.js
Expand Up @@ -15627,7 +15627,7 @@ var a = "test2";
const code = BROKEN_TEST_CODE;

it("should report a violation with a useful parse error prefix", () => {
const messages = linter.verify(code);
const messages = linter.verify(code, {});
const suppressedMessages = linter.getSuppressedMessages();

assert.strictEqual(messages.length, 1);
Expand All @@ -15648,7 +15648,7 @@ var a = "test2";
" x++;",
"}"
];
const messages = linter.verify(inValidCode.join("\n"));
const messages = linter.verify(inValidCode.join("\n"), {});
const suppressedMessages = linter.getSuppressedMessages();

assert.strictEqual(messages.length, 1);
Expand Down Expand Up @@ -16584,7 +16584,7 @@ var a = "test2";
});

it("should not crash when invalid parentheses syntax is encountered", () => {
linter.verify("left = (aSize.width/2) - ()");
linter.verify("left = (aSize.width/2) - ()", {});
});

it("should not crash when let is used inside of switch case", () => {
Expand Down

0 comments on commit 2665552

Please sign in to comment.