summaryrefslogtreecommitdiff
path: root/cli/tests/056_make_temp_file_write_perm.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/056_make_temp_file_write_perm.ts')
-rw-r--r--cli/tests/056_make_temp_file_write_perm.ts8
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);