Skip to content

Commit

Permalink
chore: upgrade test_util/std/ submodule (denoland#14722)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed May 25, 2022
1 parent 5e62ee3 commit 3aef7d1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
9 changes: 8 additions & 1 deletion cli/bench/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
&[
"cache",
"--reload",
"--unstable",
"test_util/std/examples/chat/server_test.ts",
],
None,
Expand All @@ -130,20 +131,26 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
"cache",
"--reload",
"--no-check",
"--unstable",
"test_util/std/examples/chat/server_test.ts",
],
None,
),
(
"bundle",
&["bundle", "test_util/std/examples/chat/server_test.ts"],
&[
"bundle",
"--unstable",
"test_util/std/examples/chat/server_test.ts",
],
None,
),
(
"bundle_no_check",
&[
"bundle",
"--no-check",
"--unstable",
"test_util/std/examples/chat/server_test.ts",
],
None,
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/unit/console_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions cli/tests/unit/rename_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Deno.test(
() => {
Deno.renameSync(olddir, file);
},
undefined,
Error,
`rename '${olddir}' -> '${file}'`,
);

Expand Down Expand Up @@ -252,7 +252,7 @@ Deno.test(
() => {
Deno.renameSync(olddir, emptydir);
},
undefined,
Error,
`rename '${olddir}' -> '${emptydir}'`,
);

Expand Down
8 changes: 4 additions & 4 deletions cli/tests/unit/spawn_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down Expand Up @@ -695,8 +695,8 @@ Deno.test(
},
);

Deno.test(async function spawnStdinPipedFails() {
await assertRejects(
Deno.test(function spawnStdinPipedFails() {
assertThrows(
() =>
Deno.spawn("id", {
stdin: "piped",
Expand Down
2 changes: 1 addition & 1 deletion test_util/std
Submodule std updated 211 files

0 comments on commit 3aef7d1

Please sign in to comment.