diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-01-08 23:07:03 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-08 17:07:03 -0500 |
commit | b71d5708c603b09714a1f539f92f82392b6ee33d (patch) | |
tree | f1bf22ba6c7c72b2468d23ae7d69e4cb31c812af /cli/js/files_test.ts | |
parent | 2d5457df15d8c4a81362bb2d185b5c6013faa1d8 (diff) |
feat: Deno.create (#3629)
Diffstat (limited to 'cli/js/files_test.ts')
-rw-r--r-- | cli/js/files_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/files_test.ts b/cli/js/files_test.ts index 824803588..a4881296a 100644 --- a/cli/js/files_test.ts +++ b/cli/js/files_test.ts @@ -161,7 +161,7 @@ testPerm({ read: true, write: true }, async function createFile(): Promise< > { const tempDir = await Deno.makeTempDir(); const filename = tempDir + "/test.txt"; - const f = await Deno.open(filename, "w"); + const f = await Deno.create(filename); let fileInfo = Deno.statSync(filename); assert(fileInfo.isFile()); assert(fileInfo.len === 0); |