Merge pull request #154 from nagisa77/codex/fix-test-case-for-postid

Fix NotificationControllerTest
This commit is contained in:
Tim
2025-07-10 00:03:12 +08:00
committed by GitHub

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