Skip to content

Commit d1ca02c

Browse files
committed
maybe fix windows
1 parent 7a111bc commit d1ca02c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mod.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,6 +2292,7 @@ Deno.test("glob", async () => {
22922292
tempDir.join("test2.txt").writeTextSync("test2\n");
22932293
const combined = (await $`cat *.ts`.noThrow().captureCombined(true)).combined;
22942294
const err = combined
2295+
.replaceAll(tempDir.toString(), "$TEMP_DIR")
22952296
.replaceAll(tempDir.realPathSync().toString(), "$TEMP_DIR");
22962297
assertEquals(err, "glob: no matches found '$TEMP_DIR/*.ts'\n");
22972298
});
@@ -2302,6 +2303,7 @@ Deno.test("glob", async () => {
23022303

23032304
const combined = (await $`cat [].ts`.noThrow().captureCombined(true)).combined;
23042305
const stderr = combined
2306+
.replaceAll(tempDir.toString(), "$TEMP_DIR")
23052307
.replaceAll(tempDir.realPathSync().toString(), "$TEMP_DIR");
23062308
assertEquals(
23072309
stderr,
@@ -2314,6 +2316,7 @@ Deno.test("glob", async () => {
23142316
tempDir.join("test2.txt").writeTextSync("test2\n");
23152317
const combined = (await $`cat *.ts || echo 2`.noThrow().captureCombined(true)).combined;
23162318
const replaced = combined
2319+
.replaceAll(tempDir.toString(), "$TEMP_DIR")
23172320
.replaceAll(tempDir.realPathSync().toString(), "$TEMP_DIR");
23182321
assertEquals(replaced, "glob: no matches found '$TEMP_DIR/*.ts'\n2\n");
23192322
});

0 commit comments

Comments
 (0)