From 6db464eff6fbc423536a21bede7fc017572498eb Mon Sep 17 00:00:00 2001 From: KimKyuHoi Date: Fri, 15 Nov 2024 04:21:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20mock=20up=20data=20Request=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/viewer/mocks/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pages/viewer/mocks/index.ts b/src/pages/viewer/mocks/index.ts index 42f84aa..f2c64f4 100644 --- a/src/pages/viewer/mocks/index.ts +++ b/src/pages/viewer/mocks/index.ts @@ -1,6 +1,6 @@ import { http, HttpResponse } from 'msw'; -import type { ShortsProps } from '@/pages/viewer/apis/shorts/fetchShortsDetail'; +import type { ShortsCardProps } from '@/pages/viewer/components/ShortsCard'; import sampleVideo from '@/assets/Sample_video.mp4'; @@ -173,19 +173,19 @@ export const ViewShortsHandler = [ ); } - const mockVideo: ShortsProps = { + const mockVideo: ShortsCardProps = { id: videoIdNumber, title: `Video ${videoIdNumber}`, - categoryId: 1, - videoUrl: sampleVideo, - memberInfo: { + category_id: 1, + video_url: sampleVideo, + member_info: { id: videoIdNumber % 5, - imageUrl: `https://i.pravatar.cc/150?img=${(videoIdNumber % 10) + 1}`, + image_url: `https://i.pravatar.cc/150?img=${(videoIdNumber % 10) + 1}`, username: `User ${videoIdNumber % 5}`, }, - likeCount: 100 + videoIdNumber, - viewCount: 1000 + videoIdNumber * 10, - commentsCount: 10 + videoIdNumber, + like_count: 100 + videoIdNumber, + view_count: 1000 + videoIdNumber * 10, + comments_count: 10 + videoIdNumber, }; return HttpResponse.json(mockVideo);