fix tests
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m39s

This commit is contained in:
Lee 2024-04-17 16:37:24 +01:00
parent ecca157d86
commit a47db6d843
2 changed files with 3 additions and 3 deletions

@ -30,7 +30,7 @@ class PlayerControllerTests {
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(jsonPath("$.player.username").value(testPlayer));
.andExpect(jsonPath("$.username").value(testPlayer));
}
@Test
@ -39,7 +39,7 @@ class PlayerControllerTests {
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(jsonPath("$.player.username").value(testPlayer));
.andExpect(jsonPath("$.username").value(testPlayer));
}
@Test

@ -28,7 +28,7 @@ class ServerControllerTests {
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk())
.andExpect(jsonPath("$.server.hostname").value(testServer));
.andExpect(jsonPath("$.hostname").value(testServer));
}
@Test