@@ -103,6 +103,17 @@ describe('Handler Functions', () => {
103103
104104 expect ( result . length ) . toBeLessThanOrEqual ( 1 ) ;
105105 } ) ;
106+
107+ it ( 'should handle until parameter' , ( ) => {
108+ const result = handlers . handleGetFileChurn ( {
109+ repo_path : testRepo ,
110+ since : testDate ,
111+ until : '2030-01-01' ,
112+ } ) ;
113+
114+ expect ( Array . isArray ( result ) ) . toBe ( true ) ;
115+ expect ( result . length ) . toBeGreaterThan ( 0 ) ;
116+ } ) ;
106117 } ) ;
107118
108119 describe ( 'handleGetTeamSummary' , ( ) => {
@@ -149,6 +160,17 @@ describe('Handler Functions', () => {
149160 expect ( result ) . toHaveProperty ( 'busFactor' ) ;
150161 expect ( result . totalFiles ) . toBeGreaterThan ( 0 ) ;
151162 } ) ;
163+
164+ it ( 'should handle until parameter' , ( ) => {
165+ const result = handlers . handleGetCodeOwnership ( {
166+ repo_path : testRepo ,
167+ since : testDate ,
168+ until : '2030-01-01' ,
169+ } ) ;
170+
171+ expect ( result ) . toHaveProperty ( 'totalFiles' ) ;
172+ expect ( result . totalFiles ) . toBeGreaterThan ( 0 ) ;
173+ } ) ;
152174 } ) ;
153175
154176 describe ( 'handleGetVelocityTrends' , ( ) => {
@@ -173,6 +195,17 @@ describe('Handler Functions', () => {
173195
174196 expect ( result . interval ) . toBe ( 'month' ) ;
175197 } ) ;
198+
199+ it ( 'should handle until parameter' , ( ) => {
200+ const result = handlers . handleGetVelocityTrends ( {
201+ repo_path : testRepo ,
202+ since : testDate ,
203+ until : '2030-01-01' ,
204+ } ) ;
205+
206+ expect ( result ) . toHaveProperty ( 'trends' ) ;
207+ expect ( Array . isArray ( result . trends ) ) . toBe ( true ) ;
208+ } ) ;
176209 } ) ;
177210
178211 describe ( 'handleGetCollaborationMetrics' , ( ) => {
@@ -186,6 +219,17 @@ describe('Handler Functions', () => {
186219 expect ( result ) . toHaveProperty ( 'topCollaborations' ) ;
187220 expect ( Array . isArray ( result . topCollaborations ) ) . toBe ( true ) ;
188221 } ) ;
222+
223+ it ( 'should handle until parameter' , ( ) => {
224+ const result = handlers . handleGetCollaborationMetrics ( {
225+ repo_path : testRepo ,
226+ since : testDate ,
227+ until : '2030-01-01' ,
228+ } ) ;
229+
230+ expect ( result ) . toHaveProperty ( 'collaborativeFiles' ) ;
231+ expect ( result ) . toHaveProperty ( 'topCollaborations' ) ;
232+ } ) ;
189233 } ) ;
190234
191235 describe ( 'handleGetQualityMetrics' , ( ) => {
@@ -200,6 +244,17 @@ describe('Handler Functions', () => {
200244 expect ( result ) . toHaveProperty ( 'revertRate' ) ;
201245 expect ( result ) . toHaveProperty ( 'fixRate' ) ;
202246 } ) ;
247+
248+ it ( 'should handle until parameter' , ( ) => {
249+ const result = handlers . handleGetQualityMetrics ( {
250+ repo_path : testRepo ,
251+ since : testDate ,
252+ until : '2030-01-01' ,
253+ } ) ;
254+
255+ expect ( result ) . toHaveProperty ( 'averageCommitSize' ) ;
256+ expect ( result ) . toHaveProperty ( 'revertRate' ) ;
257+ } ) ;
203258 } ) ;
204259
205260 describe ( 'handleGetTechnicalDebt' , ( ) => {
0 commit comments