diff options
author | Nayeem Rahman <muhammed.9939@gmail.com> | 2020-02-25 14:23:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:23:23 -0500 |
commit | 14e7e1e3af43b2322a26fcc542428c8f1af4460d (patch) | |
tree | 37b61598d27754b4f145a211f3f0c0ed400876bb /cli/tests/056_make_temp_file_write_perm.ts | |
parent | 91b606aaae23bcb790b55adc5fe70a182a37d564 (diff) |
fix: Resolve makeTemp* paths from CWD (#4104)
Diffstat (limited to 'cli/tests/056_make_temp_file_write_perm.ts')
-rw-r--r-- | cli/tests/056_make_temp_file_write_perm.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/056_make_temp_file_write_perm.ts b/cli/tests/056_make_temp_file_write_perm.ts new file mode 100644 index 000000000..15aefaff9 --- /dev/null +++ b/cli/tests/056_make_temp_file_write_perm.ts @@ -0,0 +1,8 @@ +const path = await Deno.makeTempFile({ dir: "./subdir/" }); +if (path.startsWith(Deno.cwd())) { + console.log("good", path); +} else { + throw Error("bad " + path); +} +console.log(path); +await Deno.remove(path); |