1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

Fixed test code (#1688)

This commit is contained in:
JaePil Jung 2019-02-06 01:20:17 +09:00 committed by Ryan Dahl
parent 7b282e4dbc
commit ed6aec9bf0
2 changed files with 3 additions and 3 deletions

View file

@ -300,5 +300,5 @@ test(function consoleDetachedLog() {
consoleTimeEnd("Hello world");
consoleGroup("Hello world");
consoleGroupEnd();
console.clear();
consoleClear();
});

View file

@ -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);
});