mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
Update to Prettier 2 and use ES Private Fields (#4498)
This commit is contained in:
parent
1397b8e0e7
commit
bced52505f
329 changed files with 2787 additions and 2430 deletions
|
@ -13,21 +13,21 @@ test({
|
|||
calledBack = true;
|
||||
});
|
||||
assert(calledBack);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test({
|
||||
name: "Closing current directory without callback returns void Promise",
|
||||
async fn() {
|
||||
await new Dir(".").close();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test({
|
||||
name: "Closing current directory synchronously works",
|
||||
fn() {
|
||||
new Dir(".").closeSync();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test({
|
||||
|
@ -37,7 +37,7 @@ test({
|
|||
|
||||
const enc: Uint8Array = new TextEncoder().encode("std/node");
|
||||
assertEquals(new Dir(enc).path, "std/node");
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test({
|
||||
|
@ -64,7 +64,7 @@ test({
|
|||
} finally {
|
||||
Deno.removeSync(testDir);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test({
|
||||
|
@ -103,7 +103,7 @@ test({
|
|||
} finally {
|
||||
Deno.removeSync(testDir, { recursive: true });
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test({
|
||||
|
@ -132,7 +132,7 @@ test({
|
|||
} finally {
|
||||
Deno.removeSync(testDir, { recursive: true });
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
test({
|
||||
|
@ -158,5 +158,5 @@ test({
|
|||
} finally {
|
||||
Deno.removeSync(testDir, { recursive: true });
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue