Skip to content

Commit f3a6944

Browse files
committed
fix(test): fixes tests around authentication
1 parent a50b7e3 commit f3a6944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/github/renancvitor/inventory/service/authentication/AuthenticationServiceTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void shouldSuccessfullyAuthenticate() {
7474
JWTTokenData result = authenticationService.authentication(data, authenticationManager);
7575

7676
assertNotNull(result);
77-
assertEquals("randomJwt", result.tokem());
77+
assertEquals("randomJwt", result.token());
7878
assertEquals(loggedInUser.getId(), result.user().id());
7979
}
8080

@@ -107,7 +107,7 @@ void shouldReturnCorrectFirstAccessFlag() {
107107
JWTTokenData result = authenticationService.authentication(data, authenticationManager);
108108

109109
assertTrue(result.firstAccess());
110-
assertEquals("jwt", result.tokem());
110+
assertEquals("jwt", result.token());
111111
}
112112

113113
@Test

0 commit comments

Comments
 (0)