summaryrefslogtreecommitdiff
path: root/js/make_temp_dir_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-03-06 20:48:46 -0500
committerGitHub <noreply@github.com>2019-03-06 20:48:46 -0500
commitc42a9d737081fb8ee768c7178dae0e1f19c0f343 (patch)
tree9ffb7e502da62793ea099c34bd7b29c8a7a19b19 /js/make_temp_dir_test.ts
parentde1a10e5f7afe793a66b2349642ea135fc066104 (diff)
Upgrade deno_std (#1892)
A major API change was that asserts are imported from testing/asserts.ts now rather than testing/mod.ts and assertEqual as renamed to assertEquals to conform to what is most common in JavaScript.
Diffstat (limited to 'js/make_temp_dir_test.ts')
-rw-r--r--js/make_temp_dir_test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/make_temp_dir_test.ts b/js/make_temp_dir_test.ts
index 2b593402f..46738617d 100644
--- a/js/make_temp_dir_test.ts
+++ b/js/make_temp_dir_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { test, testPerm, assert, assertEqual } from "./test_util.ts";
+import { test, testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ write: true }, function makeTempDirSyncSuccess() {
const dir1 = Deno.makeTempDirSync({ prefix: "hello", suffix: "world" });
@@ -23,8 +23,8 @@ testPerm({ write: true }, function makeTempDirSyncSuccess() {
} catch (err_) {
err = err_;
}
- assertEqual(err.kind, Deno.ErrorKind.NotFound);
- assertEqual(err.name, "NotFound");
+ assertEquals(err.kind, Deno.ErrorKind.NotFound);
+ assertEquals(err.name, "NotFound");
});
test(function makeTempDirSyncPerm() {
@@ -35,8 +35,8 @@ test(function makeTempDirSyncPerm() {
} catch (err_) {
err = err_;
}
- assertEqual(err.kind, Deno.ErrorKind.PermissionDenied);
- assertEqual(err.name, "PermissionDenied");
+ assertEquals(err.kind, Deno.ErrorKind.PermissionDenied);
+ assertEquals(err.name, "PermissionDenied");
});
testPerm({ write: true }, async function makeTempDirSuccess() {
@@ -61,6 +61,6 @@ testPerm({ write: true }, async function makeTempDirSuccess() {
} catch (err_) {
err = err_;
}
- assertEqual(err.kind, Deno.ErrorKind.NotFound);
- assertEqual(err.name, "NotFound");
+ assertEquals(err.kind, Deno.ErrorKind.NotFound);
+ assertEquals(err.name, "NotFound");
});