Skip to content

Commit 950df56

Browse files
authored
[Fix/#253] Feed Controller Test 수정 (#254)
* fix: feed Controller Test 수정 * fix: test에서 isNotEmpty 추가
1 parent 07b7af7 commit 950df56

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

clokey-api/src/test/java/org/clokey/domain/feed/controller/FeedControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class 피드_조회_요청_시 {
7777
.value("https://image.test/10.png"))
7878
.andExpect(jsonPath("$.result.items[0].isLiked").value(true))
7979
.andExpect(jsonPath("$.result.items[0].author.memberId").value(2L))
80-
.andExpect(jsonPath("$.result.items[0].author.clokeyId").value("clokey2"))
80+
.andExpect(jsonPath("$.result.items[0].author.nickname").value("clokey2"))
8181
.andExpect(
8282
jsonPath("$.result.items[0].author.profileImageUrl")
8383
.value("https://image.test/p2.png"))

clokey-api/src/test/java/org/clokey/domain/feed/service/FeedServiceTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ void setUp() {
213213
.map(FeedListResponse.FeedItemResponse::feedId)
214214
.toList();
215215
// then
216+
assertThat(feedIds).isNotEmpty();
216217
assertThat(feedIds).doesNotContain(history2_1, history2_2, history2_3);
217218
assertThat(response.items()).hasSize(2);
218219
assertThat(response.hasNext()).isFalse();

0 commit comments

Comments
 (0)