1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(test): allow explicit undefined for boolean test options (#18786)

Fixes #18784.
This commit is contained in:
Nayeem Rahman 2023-04-21 14:32:37 +01:00 committed by GitHub
parent 1d447cb7c3
commit 065d8771ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -100,7 +100,9 @@ struct TestInfo<'s> {
#[serde(rename = "fn")]
function: serde_v8::Value<'s>,
name: String,
#[serde(default)]
ignore: bool,
#[serde(default)]
only: bool,
location: TestLocation,
}

View file

@ -147,3 +147,8 @@ Deno.test(async function parentOnTextContext(t1) {
});
});
});
Deno.test("explicit undefined for boolean options", {
ignore: undefined,
only: undefined,
}, () => {});