diff --git a/js/console_test.ts b/js/console_test.ts index ee13c82291..577c8bf5d4 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 2415605034..d025c6ec57 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); });