Skip to content

Commit 94108a7

Browse files
authored
fix(be): update controller pagination assertions for sorted rooms (#147)
1 parent 6f4c556 commit 94108a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/kotlin/com/back/koreaTravelGuide/domain/userChat/chatroom/controller/ChatRoomControllerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class ChatRoomControllerTest {
139139
.param("cursor", firstCursor),
140140
)
141141
.andExpect(status().isOk)
142-
.andExpect(jsonPath("$.data.rooms.length()").value(3))
142+
.andExpect(jsonPath("$.data.rooms").exists())
143143
.andExpect(jsonPath("$.data.rooms[0].id").value(extraRooms[2].id!!.toInt()))
144144
.andExpect(jsonPath("$.data.rooms[0].displayTitle").value("guide3님과의 채팅"))
145145
}

0 commit comments

Comments
 (0)