Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
mleonhard committed Dec 22, 2023
1 parent 9bd3b2a commit 9d11db4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/cookie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ fn value1() -> AsciiString {
}

#[test]
#[should_panic]
#[should_panic(expected = "Cookie::new called with empty `name`")]
fn empty_name_should_panic() {
assert_eq!(
Cookie::new("", value1()).to_string(),
"=value1; HttpOnly; Max-Age=2592000; SameSite=Strict; Secure",
);
Cookie::new("", value1()).to_string();
}

#[test]
Expand Down

0 comments on commit 9d11db4

Please sign in to comment.