mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
10e4b2e140
Yearly tradition of creating extra noise in git.
15 lines
411 B
TypeScript
15 lines
411 B
TypeScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
import { assertEquals } from "./test_util.ts";
|
|
|
|
Deno.test(
|
|
{
|
|
ignore: Deno.build.os === "windows",
|
|
},
|
|
function umaskSuccess() {
|
|
const prevMask = Deno.umask(0o020);
|
|
const newMask = Deno.umask(prevMask);
|
|
const finalMask = Deno.umask();
|
|
assertEquals(newMask, 0o020);
|
|
assertEquals(finalMask, prevMask);
|
|
},
|
|
);
|