mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 14:41:15 +00:00
Reorganize version and platform into Deno.build and Deno.version (#1879)
This commit is contained in:
parent
91364cabae
commit
de1a10e5f7
14 changed files with 52 additions and 83 deletions
|
@ -10,7 +10,7 @@ testPerm({ write: true }, function dirCwdChdirSuccess() {
|
|||
const path = Deno.makeTempDirSync();
|
||||
Deno.chdir(path);
|
||||
const current = Deno.cwd();
|
||||
if (Deno.platform.os === "mac") {
|
||||
if (Deno.build.os === "mac") {
|
||||
assertEqual(current, "/private" + path);
|
||||
} else {
|
||||
assertEqual(current, path);
|
||||
|
@ -20,7 +20,7 @@ testPerm({ write: true }, function dirCwdChdirSuccess() {
|
|||
|
||||
testPerm({ write: true }, function dirCwdError() {
|
||||
// excluding windows since it throws resource busy, while removeSync
|
||||
if (["linux", "mac"].includes(Deno.platform.os)) {
|
||||
if (["linux", "mac"].includes(Deno.build.os)) {
|
||||
const initialdir = Deno.cwd();
|
||||
const path = Deno.makeTempDirSync();
|
||||
Deno.chdir(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue