@@ -449,7 +449,7 @@ describe('computeLineChartAnalysis', () => {
449449 expect ( result . slope ) . toBe ( 0 )
450450 expect ( result . rSquared ) . toBeNull ( )
451451 expect ( result . interpretation . volatility ) . toBe ( 'undefined' )
452- expect ( result . interpretation . trend ) . toBe ( 'undefined ' )
452+ expect ( result . interpretation . trend ) . toBe ( 'none ' )
453453 } )
454454
455455 it ( 'handles two values where the first value is 0' , ( ) => {
@@ -521,7 +521,7 @@ describe('computeLineChartAnalysis', () => {
521521 expect ( result . mean ) . toBe ( 5 )
522522 expect ( result . standardDeviation ) . toBe ( 0 )
523523 expect ( result . rSquared ) . toBeNull ( )
524- expect ( result . interpretation . trend ) . toBe ( 'undefined ' )
524+ expect ( result . interpretation . trend ) . toBe ( 'none ' )
525525 } )
526526
527527 it ( 'handles nulls within a perfect linear trend using original indexes' , ( ) => {
@@ -666,6 +666,6 @@ describe('computeLineChartAnalysis', () => {
666666
667667 const undefinedTrend = computeLineChartAnalysis ( [ 0 , 0 , 0 , 0 ] )
668668 expect ( undefinedTrend . rSquared ) . toBeNull ( )
669- expect ( undefinedTrend . interpretation . trend ) . toBe ( 'undefined ' )
669+ expect ( undefinedTrend . interpretation . trend ) . toBe ( 'none ' )
670670 } )
671671} )
0 commit comments