mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
refactor: remove "unitTest" wrapper from cli/tests/unit (#12750)
This commit is contained in:
parent
51e3db956a
commit
bedb2adfb0
83 changed files with 1049 additions and 1163 deletions
|
@ -4,10 +4,9 @@ import {
|
|||
assertRejects,
|
||||
assertThrows,
|
||||
pathToAbsoluteFileUrl,
|
||||
unitTest,
|
||||
} from "./test_util.ts";
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
async function futimeSyncSuccess() {
|
||||
const testDir = await Deno.makeTempDir();
|
||||
|
@ -29,7 +28,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
function futimeSyncSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -51,7 +50,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
function utimeSyncFileSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -70,7 +69,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
function utimeSyncUrlSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -89,7 +88,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
function utimeSyncDirectorySuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -104,7 +103,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
function utimeSyncDateSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -119,7 +118,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
function utimeSyncFileDateSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -137,7 +136,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
function utimeSyncLargeNumberSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -154,7 +153,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
function utimeSyncNotFound() {
|
||||
const atime = 1000;
|
||||
|
@ -170,7 +169,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: false } },
|
||||
function utimeSyncPerm() {
|
||||
const atime = 1000;
|
||||
|
@ -182,7 +181,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
async function utimeFileSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -201,7 +200,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
async function utimeUrlSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -220,7 +219,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
async function utimeDirectorySuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -235,7 +234,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
async function utimeDateSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -250,7 +249,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
async function utimeFileDateSuccess() {
|
||||
const testDir = Deno.makeTempDirSync();
|
||||
|
@ -269,7 +268,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: true } },
|
||||
async function utimeNotFound() {
|
||||
const atime = 1000;
|
||||
|
@ -285,7 +284,7 @@ unitTest(
|
|||
},
|
||||
);
|
||||
|
||||
unitTest(
|
||||
Deno.test(
|
||||
{ permissions: { read: true, write: false } },
|
||||
async function utimeSyncPerm() {
|
||||
const atime = 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue