@@ -75,9 +75,9 @@ describe('RankService', () => {
7575 expect ( result . total ) . toBe ( mockRankResults . length ) ;
7676 expect ( result . rank ) . toHaveLength ( mockRankResults . length ) ;
7777 expect ( result . rank [ 0 ] . projectName ) . toBe ( 'Project 1' ) ;
78- expect ( result . rank [ 0 ] . successRate ) . toBe ( 90 ) ;
78+ expect ( result . rank [ 0 ] . value ) . toBe ( 90 ) ;
7979 expect ( result . rank [ 1 ] . projectName ) . toBe ( 'Project 2' ) ;
80- expect ( result . rank [ 1 ] . successRate ) . toBe ( 80 ) ;
80+ expect ( result . rank [ 1 ] . value ) . toBe ( 80 ) ;
8181 } ) ;
8282
8383 it ( '프로젝트 정보가 없는 경우 Unknown으로 표시해야 한다' , async ( ) => {
@@ -121,9 +121,9 @@ describe('RankService', () => {
121121 mockProjectRepository . find . mockResolvedValue ( mockProjects ) ;
122122
123123 const result = await service . getElapsedTimeRank ( mockDto ) ;
124- expect ( result . rank [ 0 ] . elapsedTime ) . toBe ( 100 ) ;
124+ expect ( result . rank [ 0 ] . value ) . toBe ( 100 ) ;
125125 expect ( result . rank [ 1 ] . projectName ) . toBe ( 'Project 2' ) ;
126- expect ( result . rank [ 1 ] . elapsedTime ) . toBe ( 150 ) ;
126+ expect ( result . rank [ 1 ] . value ) . toBe ( 150 ) ;
127127 } ) ;
128128
129129 it ( '프로젝트 정보가 없는 경우 Unknown으로 표시해야 한다' , async ( ) => {
@@ -184,7 +184,7 @@ describe('RankService', () => {
184184 expect ( result . total ) . toBe ( mockRankResults . length ) ;
185185 expect ( result . rank ) . toHaveLength ( mockRankResults . length ) ;
186186 result . rank . forEach ( ( rankItem , index ) => {
187- expect ( rankItem . dau ) . toBe ( mockRankResults [ index ] . dau ) ;
187+ expect ( rankItem . value ) . toBe ( mockRankResults [ index ] . dau ) ;
188188 } ) ;
189189 } ) ;
190190
@@ -232,9 +232,9 @@ describe('RankService', () => {
232232 mockProjectRepository . find . mockResolvedValue ( mockProjects ) ;
233233
234234 const result = await service . getTrafficRank ( mockDto ) ;
235- expect ( result . rank [ 0 ] . count ) . toBe ( 9999 ) ;
235+ expect ( result . rank [ 0 ] . value ) . toBe ( 9999 ) ;
236236 expect ( result . rank [ 1 ] . projectName ) . toBe ( 'Project 2' ) ;
237- expect ( result . rank [ 1 ] . count ) . toBe ( 9090 ) ;
237+ expect ( result . rank [ 1 ] . value ) . toBe ( 9090 ) ;
238238 } ) ;
239239
240240 it ( '프로젝트 정보가 없는 경우 Unknown으로 표시해야 한다' , async ( ) => {
0 commit comments