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:
parent
7b282e4dbc
commit
ed6aec9bf0
2 changed files with 3 additions and 3 deletions
|
@ -300,5 +300,5 @@ test(function consoleDetachedLog() {
|
|||
consoleTimeEnd("Hello world");
|
||||
consoleGroup("Hello world");
|
||||
consoleGroupEnd();
|
||||
console.clear();
|
||||
consoleClear();
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue