summaryrefslogtreecommitdiff
path: root/js/rename_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/rename_test.ts')
-rw-r--r--js/rename_test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/rename_test.ts b/js/rename_test.ts
index 0d48169d0..689787115 100644
--- a/js/rename_test.ts
+++ b/js/rename_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { testPerm, assert, assertEqual } from "./test_util.ts";
+import { testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ read: true, write: true }, function renameSyncSuccess() {
const testDir = Deno.makeTempDirSync();
@@ -17,10 +17,10 @@ testPerm({ read: true, write: true }, function renameSyncSuccess() {
oldPathInfo = Deno.statSync(oldpath);
} catch (e) {
caughtErr = true;
- assertEqual(e.kind, Deno.ErrorKind.NotFound);
+ assertEquals(e.kind, Deno.ErrorKind.NotFound);
}
assert(caughtErr);
- assertEqual(oldPathInfo, undefined);
+ assertEquals(oldPathInfo, undefined);
});
testPerm({ read: true, write: false }, function renameSyncPerm() {
@@ -32,8 +32,8 @@ testPerm({ read: true, write: false }, function renameSyncPerm() {
} catch (e) {
err = e;
}
- assertEqual(err.kind, Deno.ErrorKind.PermissionDenied);
- assertEqual(err.name, "PermissionDenied");
+ assertEquals(err.kind, Deno.ErrorKind.PermissionDenied);
+ assertEquals(err.name, "PermissionDenied");
});
testPerm({ read: true, write: true }, async function renameSuccess() {
@@ -52,8 +52,8 @@ testPerm({ read: true, write: true }, async function renameSuccess() {
oldPathInfo = Deno.statSync(oldpath);
} catch (e) {
caughtErr = true;
- assertEqual(e.kind, Deno.ErrorKind.NotFound);
+ assertEquals(e.kind, Deno.ErrorKind.NotFound);
}
assert(caughtErr);
- assertEqual(oldPathInfo, undefined);
+ assertEquals(oldPathInfo, undefined);
});