Skip to content

Commit 9abed4c

Browse files
committed
Fix typo in tests
1 parent e256302 commit 9abed4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/sinks/FileSystem.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,19 +177,19 @@ t.test("it works", async (t) => {
177177
if (isWindows) {
178178
throws(
179179
() =>
180-
rename(new URL("file:/X://../test.txt"), "../test2.txt", () => {}),
180+
rename(new URL("file://X:/../test.txt"), "../test2.txt", () => {}),
181181
"Zen has blocked a path traversal attack: fs.rename(...) originating from body.file.matches"
182182
);
183183

184184
throws(
185185
() =>
186-
rename(new URL("file:/D://./../test.txt"), "../test2.txt", () => {}),
186+
rename(new URL("file://D:/./../test.txt"), "../test2.txt", () => {}),
187187
"Zen has blocked a path traversal attack: fs.rename(...) originating from body.file.matches"
188188
);
189189

190190
throws(
191191
() =>
192-
rename(new URL("file:/C://../../test.txt"), "../test2.txt", () => {}),
192+
rename(new URL("file://C:/../../test.txt"), "../test2.txt", () => {}),
193193
"Zen has blocked a path traversal attack: fs.rename(...) originating from body.file.matches"
194194
);
195195

0 commit comments

Comments
 (0)