File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/metrics/tests/unit Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ describe('Working with dimensions', () => {
581
581
} ) ;
582
582
583
583
// Act
584
- metrics . addMetric ( 'myMetric ' , MetricUnit . Count , 1 ) ;
584
+ metrics . addMetric ( 'test ' , MetricUnit . Count , 1 ) ;
585
585
586
586
// Assess
587
587
expect ( console . warn ) . not . toHaveBeenCalled ( ) ;
@@ -616,7 +616,7 @@ describe('Working with dimensions', () => {
616
616
metrics . addMetric ( 'test' , MetricUnit . Count , 1 ) ;
617
617
metrics . publishStoredMetrics ( ) ;
618
618
619
- // Assert
619
+ // Assess
620
620
expect ( console . warn ) . toHaveBeenCalledWith (
621
621
`The dimension ${ name } doesn't meet the requirements and won't be added. Ensure the dimension name and value are non empty strings`
622
622
) ;
@@ -641,7 +641,7 @@ describe('Working with dimensions', () => {
641
641
// @ts -expect-error – simulate runtime misuse
642
642
metrics . setDefaultDimensions ( 'not-an-object' ) ;
643
643
644
- // Assert
644
+ // Assess
645
645
expect ( console . warn ) . not . toHaveBeenCalled ( ) ;
646
646
647
647
metrics . addMetric ( 'someMetric' , MetricUnit . Count , 1 ) ;
You can’t perform that action at this time.
0 commit comments