diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-11-23 17:45:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 17:45:18 +0100 |
commit | bedb2adfb065c1b0d3bcb773fbeff91230402b6b (patch) | |
tree | b4d90c36f2409f7f9b6247b74e9c111a38befcdf /cli/tests/unit/link_test.ts | |
parent | 51e3db956a5927229e3f46f4eaaf317e935f8f17 (diff) |
refactor: remove "unitTest" wrapper from cli/tests/unit (#12750)
Diffstat (limited to 'cli/tests/unit/link_test.ts')
-rw-r--r-- | cli/tests/unit/link_test.ts | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/cli/tests/unit/link_test.ts b/cli/tests/unit/link_test.ts index fdd7d2fe8..36e30f3ba 100644 --- a/cli/tests/unit/link_test.ts +++ b/cli/tests/unit/link_test.ts @@ -4,10 +4,9 @@ import { assertEquals, assertRejects, assertThrows, - unitTest, } from "./test_util.ts"; -unitTest( +Deno.test( { permissions: { read: true, write: true } }, function linkSyncSuccess() { const testDir = Deno.makeTempDirSync(); @@ -46,7 +45,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: true, write: true } }, function linkSyncExists() { const testDir = Deno.makeTempDirSync(); @@ -66,7 +65,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: true, write: true } }, function linkSyncNotFound() { const testDir = Deno.makeTempDirSync(); @@ -83,7 +82,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: false, write: true } }, function linkSyncReadPerm() { assertThrows(() => { @@ -92,7 +91,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: true, write: false } }, function linkSyncWritePerm() { assertThrows(() => { @@ -101,7 +100,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: true, write: true } }, async function linkSuccess() { const testDir = Deno.makeTempDirSync(); @@ -140,7 +139,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: true, write: true } }, async function linkExists() { const testDir = Deno.makeTempDirSync(); @@ -160,7 +159,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: true, write: true } }, async function linkNotFound() { const testDir = Deno.makeTempDirSync(); @@ -177,7 +176,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: false, write: true } }, async function linkReadPerm() { await assertRejects(async () => { @@ -186,7 +185,7 @@ unitTest( }, ); -unitTest( +Deno.test( { permissions: { read: true, write: false } }, async function linkWritePerm() { await assertRejects(async () => { |