mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
Remove flaky and useless tests (#5116)
This commit is contained in:
parent
7e00b2471d
commit
846c049c9b
2 changed files with 0 additions and 30 deletions
|
@ -6,7 +6,6 @@ import {
|
|||
assertEquals,
|
||||
assertNotEquals,
|
||||
assertThrows,
|
||||
assertThrowsAsync,
|
||||
} from "../../testing/asserts.ts";
|
||||
import { writeFile } from "./_fs_writeFile.ts";
|
||||
|
||||
|
@ -161,20 +160,3 @@ test("Mode is not set when rid is passed", async function testCorrectFileModeRid
|
|||
assert(fileInfo.mode);
|
||||
assertNotEquals(fileInfo.mode & 0o777, 0o777);
|
||||
});
|
||||
|
||||
test("Mode is not implemented on windows", function testModeNotImplementedWindows(): void {
|
||||
if (Deno.build.os !== "windows") return;
|
||||
|
||||
assertThrowsAsync(
|
||||
() => {
|
||||
return new Promise((resolve, reject) => {
|
||||
writeFile("fail.txt", "some data", { mode: 0o777 }, (err) => {
|
||||
if (err) return reject(err);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
},
|
||||
Error,
|
||||
`Not implemented: "mode" on Windows`
|
||||
);
|
||||
});
|
||||
|
|
|
@ -105,15 +105,3 @@ test("Mode is not set when rid is passed", async function testCorrectFileModeRid
|
|||
assert(fileInfo.mode);
|
||||
assertNotEquals(fileInfo.mode & 0o777, 0o777);
|
||||
});
|
||||
|
||||
test("Mode is not implemented on windows", function testModeNotImplementedWindows(): void {
|
||||
if (Deno.build.os !== "windows") return;
|
||||
|
||||
assertThrowsAsync(
|
||||
async () => {
|
||||
await writeFile("fail.txt", "some data", { mode: 0o777 });
|
||||
},
|
||||
Error,
|
||||
`Not implemented: "mode" on Windows`
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue