fix: wrong usage of assertThrowsAsync which without await keyword (denoland/deno_std#295)

Original: 59adafe867
This commit is contained in:
Axetroy 2019-03-20 01:22:33 +08:00 committed by Ryan Dahl
parent 4ac66ec640
commit eaa795d477
5 changed files with 19 additions and 15 deletions

View file

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