mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix(test): allow explicit undefined for boolean test options (#18786)
Fixes #18784.
This commit is contained in:
parent
1d447cb7c3
commit
065d8771ad
2 changed files with 7 additions and 0 deletions
|
@ -100,7 +100,9 @@ struct TestInfo<'s> {
|
||||||
#[serde(rename = "fn")]
|
#[serde(rename = "fn")]
|
||||||
function: serde_v8::Value<'s>,
|
function: serde_v8::Value<'s>,
|
||||||
name: String,
|
name: String,
|
||||||
|
#[serde(default)]
|
||||||
ignore: bool,
|
ignore: bool,
|
||||||
|
#[serde(default)]
|
||||||
only: bool,
|
only: bool,
|
||||||
location: TestLocation,
|
location: TestLocation,
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,3 +147,8 @@ Deno.test(async function parentOnTextContext(t1) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Deno.test("explicit undefined for boolean options", {
|
||||||
|
ignore: undefined,
|
||||||
|
only: undefined,
|
||||||
|
}, () => {});
|
||||||
|
|
Loading…
Reference in a new issue