diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/console_test.ts | 2 | ||||
-rw-r--r-- | cli/tests/unit/rename_test.ts | 4 | ||||
-rw-r--r-- | cli/tests/unit/spawn_test.ts | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/cli/tests/unit/console_test.ts b/cli/tests/unit/console_test.ts index 4601281ff..d349266e8 100644 --- a/cli/tests/unit/console_test.ts +++ b/cli/tests/unit/console_test.ts @@ -52,7 +52,7 @@ function parseCss(cssString: string): Css { return parseCss_(cssString); } -function parseCssColor(colorString: string): Css { +function parseCssColor(colorString: string): [number, number, number] | null { return parseCssColor_(colorString); } diff --git a/cli/tests/unit/rename_test.ts b/cli/tests/unit/rename_test.ts index 6d200e9c5..cf458f44d 100644 --- a/cli/tests/unit/rename_test.ts +++ b/cli/tests/unit/rename_test.ts @@ -167,7 +167,7 @@ Deno.test( () => { Deno.renameSync(olddir, file); }, - undefined, + Error, `rename '${olddir}' -> '${file}'`, ); @@ -252,7 +252,7 @@ Deno.test( () => { Deno.renameSync(olddir, emptydir); }, - undefined, + Error, `rename '${olddir}' -> '${emptydir}'`, ); diff --git a/cli/tests/unit/spawn_test.ts b/cli/tests/unit/spawn_test.ts index de47b8757..10bcc597f 100644 --- a/cli/tests/unit/spawn_test.ts +++ b/cli/tests/unit/spawn_test.ts @@ -381,8 +381,8 @@ Deno.test( }, ); -Deno.test({ permissions: { run: true } }, async function spawnNotFound() { - await assertRejects( +Deno.test({ permissions: { run: true } }, function spawnNotFound() { + assertThrows( () => Deno.spawn("this file hopefully doesn't exist"), Deno.errors.NotFound, ); @@ -695,8 +695,8 @@ Deno.test( }, ); -Deno.test(async function spawnStdinPipedFails() { - await assertRejects( +Deno.test(function spawnStdinPipedFails() { + assertThrows( () => Deno.spawn("id", { stdin: "piped", |