Skip to content

Commit a9a7440

Browse files
test: fix
1 parent d9448f2 commit a9a7440

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

validation/my-ts-code.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const isFunction = typeof readFileSync === "function";
2424

2525
getSomething(isFunction);
2626

27-
const myPath: PathLike = new URL("file.txt", import.meta.url);
28-
const myPath2: PathOrFileDescriptor = new URL("file.text", import.meta.url);
27+
const myPath: PathLike = new URL("./file.txt", import.meta.url);
28+
const myPath2: PathOrFileDescriptor = new URL("./file.text", import.meta.url);
2929
const myTime: TimeLike = new Date();
3030

3131
getSomething(myPath);

validation/universal/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function getRandomNumbers() {
3232
let content;
3333

3434
try {
35-
content = await readFile(new URL("file.txt", import.meta.url));
35+
content = await readFile(new URL("./file.txt", import.meta.url));
3636
} catch (err) {
3737
throw new Error("Error fetching data", { cause: err });
3838
}

0 commit comments

Comments
 (0)