@@ -1112,7 +1112,7 @@ describe('Class: Metrics', () => {
1112
1112
let publishStoredMetricsSpy : jest . SpyInstance ;
1113
1113
let addMetricSpy : jest . SpyInstance ;
1114
1114
let captureColdStartMetricSpy : jest . SpyInstance ;
1115
- let throwOnEmptyMetricsSpy : jest . SpyInstance ;
1115
+ let setThrowOnEmptyMetricsSpy : jest . SpyInstance ;
1116
1116
let setDefaultDimensionsSpy : jest . SpyInstance ;
1117
1117
const decoratorLambdaExpectedReturnValue = 'Lambda invoked!' ;
1118
1118
const decoratorLambdaMetric = 'decorator-lambda-test-metric' ;
@@ -1122,7 +1122,7 @@ describe('Class: Metrics', () => {
1122
1122
publishStoredMetricsSpy = jest . spyOn ( metrics , 'publishStoredMetrics' ) ;
1123
1123
addMetricSpy = jest . spyOn ( metrics , 'addMetric' ) ;
1124
1124
captureColdStartMetricSpy = jest . spyOn ( metrics , 'captureColdStartMetric' ) ;
1125
- throwOnEmptyMetricsSpy = jest . spyOn ( metrics , 'throwOnEmptyMetrics ' ) ;
1125
+ setThrowOnEmptyMetricsSpy = jest . spyOn ( metrics , 'setThrowOnEmptyMetrics ' ) ;
1126
1126
setDefaultDimensionsSpy = jest . spyOn ( metrics , 'setDefaultDimensions' ) ;
1127
1127
} ) ;
1128
1128
@@ -1145,7 +1145,7 @@ describe('Class: Metrics', () => {
1145
1145
) ;
1146
1146
expect ( publishStoredMetricsSpy ) . toBeCalledTimes ( 1 ) ;
1147
1147
expect ( captureColdStartMetricSpy ) . not . toBeCalled ( ) ;
1148
- expect ( throwOnEmptyMetricsSpy ) . not . toBeCalled ( ) ;
1148
+ expect ( setThrowOnEmptyMetricsSpy ) . not . toBeCalled ( ) ;
1149
1149
expect ( setDefaultDimensionsSpy ) . not . toBeCalled ( ) ;
1150
1150
} ) ;
1151
1151
@@ -1170,7 +1170,7 @@ describe('Class: Metrics', () => {
1170
1170
) ;
1171
1171
expect ( captureColdStartMetricSpy ) . toBeCalledTimes ( 1 ) ;
1172
1172
expect ( publishStoredMetricsSpy ) . toBeCalledTimes ( 1 ) ;
1173
- expect ( throwOnEmptyMetricsSpy ) . not . toBeCalled ( ) ;
1173
+ expect ( setThrowOnEmptyMetricsSpy ) . not . toBeCalled ( ) ;
1174
1174
expect ( setDefaultDimensionsSpy ) . not . toBeCalled ( ) ;
1175
1175
} ) ;
1176
1176
@@ -1193,7 +1193,7 @@ describe('Class: Metrics', () => {
1193
1193
MetricUnit . Count ,
1194
1194
1
1195
1195
) ;
1196
- expect ( throwOnEmptyMetricsSpy ) . toBeCalledTimes ( 1 ) ;
1196
+ expect ( setThrowOnEmptyMetricsSpy ) . toBeCalledTimes ( 1 ) ;
1197
1197
expect ( publishStoredMetricsSpy ) . toBeCalledTimes ( 1 ) ;
1198
1198
expect ( captureColdStartMetricSpy ) . not . toBeCalled ( ) ;
1199
1199
expect ( setDefaultDimensionsSpy ) . not . toBeCalled ( ) ;
@@ -1227,7 +1227,7 @@ describe('Class: Metrics', () => {
1227
1227
defaultDimensions
1228
1228
) ;
1229
1229
expect ( publishStoredMetricsSpy ) . toBeCalledTimes ( 1 ) ;
1230
- expect ( throwOnEmptyMetricsSpy ) . not . toBeCalled ( ) ;
1230
+ expect ( setThrowOnEmptyMetricsSpy ) . not . toBeCalled ( ) ;
1231
1231
expect ( captureColdStartMetricSpy ) . not . toBeCalled ( ) ;
1232
1232
} ) ;
1233
1233
0 commit comments