Skip to content

Commit 18099ab

Browse files
committed
✅ test: statistic 도메인 테스트 코드 최종 리팩토링
1 parent ada8451 commit 18099ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/test/statistic/e2e/all.e2e-spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ describe(`GET ${URL}?limit={} E2E Test`, () => {
5050

5151
it('[200] 전체 조회수 통계에서 개수 제한을 걸 경우 특정 개수만큼의 전체 조회수 통계 조회를 성공한다.', async () => {
5252
// given
53-
const requestDto = new ReadStatisticRequestDto({ limit: 1 });
53+
const limit = 1;
54+
const requestDto = new ReadStatisticRequestDto({ limit });
5455

5556
// Http when
5657
const response = await agent.get(URL).query(requestDto);
@@ -59,7 +60,7 @@ describe(`GET ${URL}?limit={} E2E Test`, () => {
5960
const { data } = response.body;
6061
expect(response.status).toBe(HttpStatus.OK);
6162
expect(data).toStrictEqual(
62-
Array.from({ length: 1 }).map((_, i) => {
63+
Array.from({ length: limit }).map((_, i) => {
6364
const feed = feedList[i];
6465
return {
6566
id: feed.id,

0 commit comments

Comments
 (0)