1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

chore: upgrade test_util/std/ submodule (#14722)

This commit is contained in:
Bartek Iwańczuk 2022-05-25 21:53:53 +02:00 committed by GitHub
parent 5e62ee31d7
commit 3aef7d1253
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 9 deletions

View file

@ -120,6 +120,7 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
&[
"cache",
"--reload",
"--unstable",
"test_util/std/examples/chat/server_test.ts",
],
None,
@ -130,13 +131,18 @@ 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,
),
(
@ -144,6 +150,7 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[
&[
"bundle",
"--no-check",
"--unstable",
"test_util/std/examples/chat/server_test.ts",
],
None,

View file

@ -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);
}

View file

@ -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}'`,
);

View file

@ -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",

@ -1 +1 @@
Subproject commit 6069bfe4137864214daf43637069fa533f04ba82
Subproject commit 852968f631b09f6df4a3b0ac6169ba3436d75fc5