Skip to content

Commit ef45fc3

Browse files
chore: change let to const
1 parent f0e7dd0 commit ef45fc3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/loader.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { TypeScriptCompileError } from "./typescript-compile-error";
77

88
describe("TypeScriptLoader", () => {
99
const fixturesPath = path.resolve(__dirname, "__fixtures__");
10+
const tsNodeSpy = jest.spyOn(tsnode, "register");
1011

1112
let loader: Loader;
12-
let tsNodeSpy = jest.spyOn(tsnode, "register");
1313

1414
function readFixtureContent(file: string): string {
1515
return fs.readFileSync(file).toString();
@@ -33,7 +33,6 @@ describe("TypeScriptLoader", () => {
3333
const filePath = path.resolve(fixturesPath, "valid.fixture.ts");
3434
loader(filePath, readFixtureContent(filePath));
3535
loader(filePath, readFixtureContent(filePath));
36-
loader(filePath, readFixtureContent(filePath));
3736
expect(tsNodeSpy).toHaveBeenCalledTimes(1);
3837
});
3938

0 commit comments

Comments
 (0)