diff options
author | JaePil Jung <jjp5023@gmail.com> | 2019-02-06 01:20:17 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-05 11:20:17 -0500 |
commit | ed6aec9bf0822dfba32f8a7e1781c5ca67881f6b (patch) | |
tree | bfc941756c017fb300fea5ea65a7934f28eabc16 /js | |
parent | 7b282e4dbc43246bd3f33850127bf19e4a2c6df3 (diff) |
Fixed test code (#1688)
Diffstat (limited to 'js')
-rw-r--r-- | js/console_test.ts | 2 | ||||
-rw-r--r-- | js/read_dir_test.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/js/console_test.ts b/js/console_test.ts index ee13c8229..577c8bf5d 100644 --- a/js/console_test.ts +++ b/js/console_test.ts @@ -300,5 +300,5 @@ test(function consoleDetachedLog() { consoleTimeEnd("Hello world"); consoleGroup("Hello world"); consoleGroupEnd(); - console.clear(); + consoleClear(); }); diff --git a/js/read_dir_test.ts b/js/read_dir_test.ts index 241560503..d025c6ec5 100644 --- a/js/read_dir_test.ts +++ b/js/read_dir_test.ts @@ -22,7 +22,7 @@ function assertSameContent(files: FileInfo[]) { assertEqual(counter, 2); } -testPerm({ write: true }, function readDirSyncSuccess() { +test(function readDirSyncSuccess() { const files = deno.readDirSync("tests/"); assertSameContent(files); }); @@ -55,7 +55,7 @@ test(function readDirSyncNotFound() { assertEqual(src, undefined); }); -testPerm({ write: true }, async function readDirSuccess() { +test(async function readDirSuccess() { const files = await deno.readDir("tests/"); assertSameContent(files); }); |