mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 07:01:16 +00:00
fix: wrong usage of assertThrowsAsync which without await keyword (denoland/deno_std#295)
Original: 59adafe867
This commit is contained in:
parent
4ac66ec640
commit
eaa795d477
5 changed files with 19 additions and 15 deletions
|
@ -240,7 +240,7 @@ test(function moveSyncFileIfDestExists() {
|
|||
);
|
||||
|
||||
// move again with overwrite
|
||||
assertThrowsAsync(
|
||||
assertThrows(
|
||||
() => {
|
||||
moveSync(srcFile, destFile, { overwrite: true });
|
||||
throw new Error("should not throw error");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue