Add more test condition
This commit is contained in:
parent
f9316a38e6
commit
750e3e166b
|
@ -2130,7 +2130,11 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn allowed_origins_errors_on_opaque_exact() {
|
fn allowed_origins_errors_on_opaque_exact() {
|
||||||
let error = parse_allowed_origins(&AllowedOrigins::some::<_, &str>(
|
let error = parse_allowed_origins(&AllowedOrigins::some::<_, &str>(
|
||||||
&["chrome-extension://something", "moz-extension://something"],
|
&[
|
||||||
|
"chrome-extension://something",
|
||||||
|
"moz-extension://something",
|
||||||
|
"https://valid.com",
|
||||||
|
],
|
||||||
&[],
|
&[],
|
||||||
))
|
))
|
||||||
.unwrap_err();
|
.unwrap_err();
|
||||||
|
|
Loading…
Reference in New Issue