Skip to content

Commit 2665552

Browse files
authored
test: fix flat config linter tests to use Linter in flat config mode (#17616)
1 parent 1aa26df commit 2665552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/lib/linter/linter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15627,7 +15627,7 @@ var a = "test2";
1562715627
const code = BROKEN_TEST_CODE;
1562815628

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

1563315633
assert.strictEqual(messages.length, 1);
@@ -15648,7 +15648,7 @@ var a = "test2";
1564815648
" x++;",
1564915649
"}"
1565015650
];
15651-
const messages = linter.verify(inValidCode.join("\n"));
15651+
const messages = linter.verify(inValidCode.join("\n"), {});
1565215652
const suppressedMessages = linter.getSuppressedMessages();
1565315653

1565415654
assert.strictEqual(messages.length, 1);
@@ -16584,7 +16584,7 @@ var a = "test2";
1658416584
});
1658516585

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy