Fix NotificationControllerTest json path

This commit is contained in:
Tim
2025-07-10 00:02:12 +08:00
parent cfc7f4035e
commit 6b3a7cb03b

View File

@@ -47,7 +47,7 @@ class NotificationControllerTest {
.principal(new UsernamePasswordAuthenticationToken("alice","p")))
.andExpect(status().isOk())
.andExpect(jsonPath("$[0].id").value(1))
.andExpect(jsonPath("$[0].postId").value(2));
.andExpect(jsonPath("$[0].post.id").value(2));
}
@Test