Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix flat config linter tests to use Linter in flat config mode #17616

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/lib/linter/linter.js
Original file line number Diff line number Diff line change
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