mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-02 05:00:40 +08:00
fix(build): missing arguments in eslint.spec.ts
This commit is contained in:
parent
e6c04e70e4
commit
6c845102d3
@ -7,7 +7,7 @@ describe("Linter", () => {
|
|||||||
const result = await lint(trimIndentation`
|
const result = await lint(trimIndentation`
|
||||||
for (const i = 0; i<10; i++) {
|
for (const i = 0; i<10; i++) {
|
||||||
}
|
}
|
||||||
`);
|
`, "application/javascript;env=frontend");
|
||||||
expect(result).toMatchObject([
|
expect(result).toMatchObject([
|
||||||
{ message: "'i' is constant.", },
|
{ message: "'i' is constant.", },
|
||||||
{ message: "Empty block statement." }
|
{ message: "Empty block statement." }
|
||||||
@ -23,7 +23,7 @@ describe("Linter", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
api.showMessage("Hi");
|
api.showMessage("Hi");
|
||||||
`);
|
`, "application/javascript;env=frontend");
|
||||||
expect(result.length).toBe(0);
|
expect(result.length).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ describe("Linter", () => {
|
|||||||
function world() { }
|
function world() { }
|
||||||
|
|
||||||
console.log("Hello world");
|
console.log("Hello world");
|
||||||
`);
|
`, "application/javascript;env=frontend");
|
||||||
expect(result).toMatchObject([
|
expect(result).toMatchObject([
|
||||||
{
|
{
|
||||||
message: "'hello' is defined but never used.",
|
message: "'hello' is defined but never used.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user