File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
server/test/statistic/e2e Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments