@@ -77,8 +77,8 @@ describe('Axis', () => {
7777 const timeLabels = screen . getAllByText ( / \d + : \d + [ A P ] M / ) ;
7878 expect ( timeLabels . length ) . toBeGreaterThan ( 0 ) ;
7979
80- // Check for second labels (secondary label)
81- const secondLabels = screen . getAllByText ( / ^ \d { 1 , 2 } $ / ) ; // Just digits for seconds
80+ // Check for second labels (secondary label) with colon prefix
81+ const secondLabels = screen . getAllByText ( / ^ : \d { 1 , 2 } $ / ) ; // Colon followed by digits for seconds
8282 expect ( secondLabels . length ) . toBeGreaterThan ( 0 ) ;
8383 } ) ;
8484
@@ -91,8 +91,8 @@ describe('Axis', () => {
9191 const timeLabels = screen . getAllByText ( / \d + : \d + [ A P ] M / ) ;
9292 expect ( timeLabels . length ) . toBeGreaterThan ( 0 ) ;
9393
94- // Check for second labels (secondary label)
95- const secondLabels = screen . getAllByText ( / ^ \d { 1 , 2 } $ / ) ; // Just digits for seconds
94+ // Check for second labels (secondary label) with colon prefix
95+ const secondLabels = screen . getAllByText ( / ^ : \d { 1 , 2 } $ / ) ; // Colon followed by digits for seconds
9696 expect ( secondLabels . length ) . toBeGreaterThan ( 0 ) ;
9797 } ) ;
9898
@@ -174,8 +174,8 @@ describe('Axis', () => {
174174 const timeLabels = screen . getAllByText ( / \d + : \d + [ A P ] M / ) ;
175175 expect ( timeLabels . length ) . toBeGreaterThan ( 0 ) ;
176176
177- // Check for second labels
178- const secondLabels = screen . getAllByText ( / ^ \d { 1 , 2 } $ / ) ;
177+ // Check for second labels with colon prefix
178+ const secondLabels = screen . getAllByText ( / ^ : \d { 1 , 2 } $ / ) ;
179179 expect ( secondLabels . length ) . toBeGreaterThan ( 0 ) ;
180180 } ) ;
181181
0 commit comments