Skip to content

Commit

Permalink
Fix failing test on Windows
Browse files Browse the repository at this point in the history
This was found because we migrated to Github actions which causes this test to fail because it uses "\n"
  • Loading branch information
nbaars committed Mar 29, 2021
1 parent 4e308d7 commit 2e733f8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ void decodeValidSignedToken() {
void decodeInvalidSignedToken() {
var token = JWTToken.decode("eyJhbGciOiJIUzI1NiJ9.eyJ0ZXsdfdfsaasfddfasN0IjoidGVzdCJ9.KOobRHDYyaesV_doOk11XXGKSONwzllraAaqqM4VFE4", "");

assertThat(token.getHeader()).contains("{\n" +
" \"alg\" : \"HS256\"\n" +
"}");
assertThat(token.getHeader()).contains("\"alg\" : \"HS256\"");
assertThat(token.getPayload()).contains("{\"te");
}

Expand Down

0 comments on commit 2e733f8

Please sign in to comment.