Fix failing test on Windows
This was found because we migrated to Github actions which causes this test to fail because it uses "\n"
This commit is contained in:
parent
4e308d7880
commit
2e733f8594
@ -47,9 +47,7 @@ class JWTTokenTest {
|
|||||||
void decodeInvalidSignedToken() {
|
void decodeInvalidSignedToken() {
|
||||||
var token = JWTToken.decode("eyJhbGciOiJIUzI1NiJ9.eyJ0ZXsdfdfsaasfddfasN0IjoidGVzdCJ9.KOobRHDYyaesV_doOk11XXGKSONwzllraAaqqM4VFE4", "");
|
var token = JWTToken.decode("eyJhbGciOiJIUzI1NiJ9.eyJ0ZXsdfdfsaasfddfasN0IjoidGVzdCJ9.KOobRHDYyaesV_doOk11XXGKSONwzllraAaqqM4VFE4", "");
|
||||||
|
|
||||||
assertThat(token.getHeader()).contains("{\n" +
|
assertThat(token.getHeader()).contains("\"alg\" : \"HS256\"");
|
||||||
" \"alg\" : \"HS256\"\n" +
|
|
||||||
"}");
|
|
||||||
assertThat(token.getPayload()).contains("{\"te");
|
assertThat(token.getPayload()).contains("{\"te");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user