Skip to content

Commit

Permalink
test: 알림 구독 취소 응답값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Choi-JJunho committed Oct 14, 2023
1 parent b765c42 commit 995a3d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class 알림_구독_ {
}

@Test
void 삭제_정상_요청__204_반환() throws Exception {
void 취소_정상_요청__200_반환() throws Exception {
doNothing().when(memberService).unSubscribeNotification(any(Member.class));

mockMvc.perform(delete("/members/notification")
Expand All @@ -160,7 +160,7 @@ class 알림_구독_ {
requestCookies()
)
)
.andExpect(status().isNoContent())
.andExpect(status().isOk())
.andDo(print());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class MemberServiceTest {
void 알림_구독__사용자의_디바이스_토큰에_값이_존재한다() {
Member saveMember = memberSupport.builder()
.kakaoId(123451L)
.deviceToken("deviceToken")
.build();

memberService.subscribeNotification(saveMember, NotificationSubscribeRequest.builder()
Expand Down

0 comments on commit 995a3d2

Please sign in to comment.