Skip to content

Commit

Permalink
Chore: 기능 테스트를 위한 mock data 일부 수정 (#20)
Browse files Browse the repository at this point in the history
- 기능 정상 작동 시험을 위한 mock data 값 변경
- 테스트 목적에 맞게 데이터 구조와 내용 일부 조정
  • Loading branch information
sunglitter committed Nov 27, 2024
1 parent 933fc92 commit a12726a
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions src/mocks/communityPosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ export const mockCommunityPosts: Post[] = [
authorNickname: '사용자 C',
currentQuantity: 2,
requiredQuantity: 5,
createdAt: '2024-11-25T08:00:00',
updatedAt: '2024-11-25T08:00:00',
closeAt: '2024-12-02T08:00:00',
createdAt: '2024-11-25T07:50:00',
updatedAt: '2024-11-25T07:50:00',
closeAt: '2024-12-02T07:50:00',
totalPrice: 10000,
unitPrice: 2000,
category: '생활용품',
Expand Down Expand Up @@ -759,4 +759,45 @@ export const mockCommunityPosts: Post[] = [
participants: [],
comments: [],
},
{
postId: 'communityPost-00037',
title: '생활용품 관련 공구 글 10 제목이 아주 길어질 거야 테스트를 해보자',
content:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
images: [
'https://picsum.photos/id/38/200/300',
'https://picsum.photos/id/39/200/300',
'https://picsum.photos/id/40/200/300',
],
url: 'https://www.naver.com',
authorId: 'user-00001',
authorNickname: '사용자 A',
currentQuantity: 2,
requiredQuantity: 5,
createdAt: '2024-11-27T08:00:00',
updatedAt: '2024-11-27T08:00:00',
closeAt: '2024-12-04T08:00:00',
totalPrice: 10000,
unitPrice: 2000,
category: '생활용품',
participants: [
{ userId: 'user-00002', quantity: 2, isCancelled: false },
{ userId: 'user-00003', quantity: 1, isCancelled: true },
],
comments: [
{
userId: 'user-00002',
createdAt: '2024-11-27T10:08:10',
content: '댓글 내용을 이런식으로 입력했을거라고 가정한다.',
commentId: 'comment-00001',
},
{
userId: 'user-00001',
createdAt: '2024-11-27T10:10:10',
content:
'로그인한 사용자가 댓글 내용을 이런식으로 입력했을거라고 가정한다.',
commentId: 'comment-00002',
},
],
},
];

0 comments on commit a12726a

Please sign in to comment.