Add more test condition

This commit is contained in:
Yong Wen Chua 2019-03-19 09:58:48 +08:00
parent f9316a38e6
commit 750e3e166b
No known key found for this signature in database
GPG Key ID: A70BD30B21497EA9
1 changed files with 5 additions and 1 deletions

View File

@ -2130,7 +2130,11 @@ mod tests {
#[test]
fn allowed_origins_errors_on_opaque_exact() {
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();