Skip to content

Commit 45eb550

Browse files
committed
chore: fix lint issues
1 parent abb6a5d commit 45eb550

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/utils/matchCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ export function createMatchCache(
2929
init: refresh,
3030
refresh,
3131
has: (filePath: string) => cache.has(normalizePath(filePath)),
32-
entries: () => Array.from(cache),
32+
entries: () => [...cache],
3333
};
3434
}

test/main/main.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe("main", () => {
3737
if (path.includes(OUTPUT_FILE_NAME)) resolve(true);
3838
});
3939

40-
setTimeout(() => reject("Generated file not found"), 5000);
40+
setTimeout(reject, 5000, "Generated file not found");
4141
});
4242
};
4343

test/match-on-glob-schema/match-on-glob-schema.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe("match-on-glob-schema", () => {
4646
if (path.includes(OUTPUT_FILE_NAME)) resolve(true);
4747
});
4848

49-
setTimeout(() => reject("Generated file not found"), 5000);
49+
setTimeout(reject, 5000, "Generated file not found");
5050
});
5151
};
5252

test/match-on-schema/match-on-schema.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("match-on-schema", () => {
4141
if (path.includes(OUTPUT_FILE_NAME)) resolve(true);
4242
});
4343

44-
setTimeout(() => reject("Generated file not found"), 5000);
44+
setTimeout(reject, 5000, "Generated file not found");
4545
});
4646
};
4747

test/watch-outside-cwd/watch-outside-cwd.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe("watch-outside-cwd", () => {
4343
if (path.includes(OUTPUT_FILE_NAME)) resolve(true);
4444
});
4545

46-
setTimeout(() => reject("Generated file not found"), 5000);
46+
setTimeout(reject, 5000, "Generated file not found");
4747
});
4848
};
4949

0 commit comments

Comments
 (0)