mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
15 lines
426 B
TypeScript
15 lines
426 B
TypeScript
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
|
import { assertEquals, unitTest } 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);
|
|
},
|
|
);
|