@emartech/aggregate-metric-logger 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emartech/aggregate-metric-logger",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "aggregate metrics in memory for logging",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -137,9 +137,9 @@ describe('metricLogger', () => {
137
137
 
138
138
  describe('start/stop', () => {
139
139
  it('should log min, max, count and sum when log was called only once', () => {
140
- const measurementId = metricLogger.start('utlegeles');
140
+ const measurement = metricLogger.start('utlegeles');
141
141
  clock.tick(50);
142
- metricLogger.stop(measurementId);
142
+ metricLogger.stop(measurement);
143
143
 
144
144
  clock.tick(60 * 1000);
145
145
  expect(Logger.prototype.info).toBeCalledWith('utlegeles', {