mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 18:17:48 -05:00
e0ca60e770
Deno.build.os values have changed to correspond to standard LLVM target triples "win" -> "windows" "mac" -> "darwin"
15 lines
425 B
TypeScript
15 lines
425 B
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
import { unitTest, assertEquals } from "./test_util.ts";
|
|
|
|
unitTest(
|
|
{
|
|
ignore: Deno.build.os === "windows",
|
|
},
|
|
function umaskSuccess(): void {
|
|
const prevMask = Deno.umask(0o020);
|
|
const newMask = Deno.umask(prevMask);
|
|
const finalMask = Deno.umask();
|
|
assertEquals(newMask, 0o020);
|
|
assertEquals(finalMask, prevMask);
|
|
}
|
|
);
|