Skip to content

Commit

Permalink
test(fs): child process scripts empty contents from tmp dirs (denolan…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbronder committed Dec 4, 2024
1 parent 4186412 commit 413da75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fs/testdata/empty_dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { emptyDir } from "../empty_dir.ts";

try {
await emptyDir("fs/testdata/testfolder");
// Empty testfolder stored in Deno.args where the child.txt is located.
await emptyDir(Deno.args[0]!);
console.log("success");
} catch (error) {
console.log(error);
Expand Down
3 changes: 2 additions & 1 deletion fs/testdata/empty_dir_sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { emptyDirSync } from "../empty_dir.ts";

try {
emptyDirSync("fs/testdata/testfolder");
// Empty testfolder stored in Deno.args where the child.txt is located.
emptyDirSync(Deno.args[0]!);
console.log("success");
} catch (error) {
console.log(error);
Expand Down

0 comments on commit 413da75

Please sign in to comment.