test: fix NotificationControllerTest expectation

This commit is contained in:
Tim
2025-07-10 00:02:03 +08:00
parent b43225a158
commit cad31f9ee8

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