Skip to content

Commit

Permalink
✅ test: 데이터 검사 범위 감축
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo-Minseok committed Dec 2, 2024
1 parent b108621 commit fb186c5
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions server/test/statistic/today.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,7 @@ describe('Today view count statistic E2E Test : GET /api/statistic/today', () =>

// then
expect(response.status).toBe(200);
expect(response.body.data).toStrictEqual([
{
id: 1,
title: 'test1',
viewCount: 5,
},
{
id: 2,
title: 'test2',
viewCount: 4,
},
]);
expect(response.body.data.map((item) => item.id)).toStrictEqual([1, 2]);
});
it('양수를 입력하여 제한된 통계를 요청한다.', async () => {
// when
Expand All @@ -52,12 +41,6 @@ describe('Today view count statistic E2E Test : GET /api/statistic/today', () =>

// then
expect(response.status).toBe(200);
expect(response.body.data).toStrictEqual([
{
id: 1,
title: 'test1',
viewCount: 5,
},
]);
expect(response.body.data.map((item) => item.id)).toStrictEqual([1]);
});
});

0 comments on commit fb186c5

Please sign in to comment.