mirror of
https://github.com/denoland/deno.git
synced 2025-09-30 22:21:15 +00:00
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.
This commit is contained in:
parent
de1a10e5f7
commit
c42a9d7370
42 changed files with 753 additions and 734 deletions
|
@ -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";
|
||||
|
||||
test(function dirCwdNotNull() {
|
||||
assert(Deno.cwd() != null);
|
||||
|
@ -11,9 +11,9 @@ testPerm({ write: true }, function dirCwdChdirSuccess() {
|
|||
Deno.chdir(path);
|
||||
const current = Deno.cwd();
|
||||
if (Deno.build.os === "mac") {
|
||||
assertEqual(current, "/private" + path);
|
||||
assertEquals(current, "/private" + path);
|
||||
} else {
|
||||
assertEqual(current, path);
|
||||
assertEquals(current, path);
|
||||
}
|
||||
Deno.chdir(initialdir);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue