fix tests
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 23s

This commit is contained in:
Lee 2024-04-13 17:18:43 +01:00
parent 8216ec7943
commit b5e8664ad3

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