Skip to content

Commit 75ace61

Browse files
committed
updated unit test assertion to return decode failed error
1 parent 3bba0c0 commit 75ace61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn test_invalid_token() {
8282

8383
let invalid_token = "invalid.token.here";
8484
match token_forge.verify_token(invalid_token) {
85-
Err(TokenError::InvalidSignature) => (),
85+
Err(TokenError::DecodeFailed) => (),
8686
_ => panic!("Expected Invalid Signature error"),
8787
}
8888
}

0 commit comments

Comments
 (0)