mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
Fixed test code (#1688)
This commit is contained in:
parent
7b282e4dbc
commit
ed6aec9bf0
2 changed files with 3 additions and 3 deletions
|
@ -300,5 +300,5 @@ test(function consoleDetachedLog() {
|
||||||
consoleTimeEnd("Hello world");
|
consoleTimeEnd("Hello world");
|
||||||
consoleGroup("Hello world");
|
consoleGroup("Hello world");
|
||||||
consoleGroupEnd();
|
consoleGroupEnd();
|
||||||
console.clear();
|
consoleClear();
|
||||||
});
|
});
|
||||||
|
|
|
@ -22,7 +22,7 @@ function assertSameContent(files: FileInfo[]) {
|
||||||
assertEqual(counter, 2);
|
assertEqual(counter, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
testPerm({ write: true }, function readDirSyncSuccess() {
|
test(function readDirSyncSuccess() {
|
||||||
const files = deno.readDirSync("tests/");
|
const files = deno.readDirSync("tests/");
|
||||||
assertSameContent(files);
|
assertSameContent(files);
|
||||||
});
|
});
|
||||||
|
@ -55,7 +55,7 @@ test(function readDirSyncNotFound() {
|
||||||
assertEqual(src, undefined);
|
assertEqual(src, undefined);
|
||||||
});
|
});
|
||||||
|
|
||||||
testPerm({ write: true }, async function readDirSuccess() {
|
test(async function readDirSuccess() {
|
||||||
const files = await deno.readDir("tests/");
|
const files = await deno.readDir("tests/");
|
||||||
assertSameContent(files);
|
assertSameContent(files);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue