Skip to content

Commit

Permalink
feat: 행사 생성 응답 dto에 필드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
3Juhwan committed Jul 24, 2024
1 parent 809c19a commit 9efb222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import server.haengdong.application.response.EventAppResponse;

public record EventResponse(String url) {
public record EventResponse(String eventId) {

public static EventResponse of(EventAppResponse eventAppResponse) {
return new EventResponse(eventAppResponse.token());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void saveEvent() throws Exception {
.content(requestBody))
.andDo(print())
.andExpect(status().isOk())
.andExpect(jsonPath("$.url").value("TOKEN"));
.andExpect(jsonPath("$.eventId").value("TOKEN"));
}

@DisplayName("토큰으로 행사를 조회한다.")
Expand Down

0 comments on commit 9efb222

Please sign in to comment.