Skip to content

Commit

Permalink
fix(travelPlanRegisterPage): 테스트 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
simorimi committed Aug 21, 2024
1 parent fa8fd8a commit 2d97244
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/__tests__/travelPlanRegisterPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,13 @@ describe("여행 계획 등록 페이지 테스트", () => {
test("사용자는 1일차에 '경복궁'이라는 장소를 추가할 수 있다.", () => {
// given
const { result } = renderHook(() => useTravelPlanDays([]));
const newPlace: Pick<TravelPlanPlace, "placeName" | "position"> = {
const newPlace: Pick<TravelPlanPlace, "placeName" | "position" | "todos"> = {
placeName: "경복궁",
position: {
lat: 37.5796,
lng: 126.977,
},
todos: [],
};

// when
Expand All @@ -138,12 +139,13 @@ describe("여행 계획 등록 페이지 테스트", () => {
test("사용자는 추가한 경복궁을 삭제할 수 있다.", () => {
// given
const { result } = renderHook(() => useTravelPlanDays([]));
const newPlace: Pick<TravelPlanPlace, "placeName" | "position"> = {
const newPlace: Pick<TravelPlanPlace, "placeName" | "position" | "todos"> = {
placeName: "경복궁",
position: {
lat: 37.5796,
lng: 126.977,
},
todos: [],
};

// when
Expand Down

0 comments on commit 2d97244

Please sign in to comment.