convertToDate,
convertToFloat,
convertToInt,
+ extractTimeSeriesValues,
formatDurationMilliSeconds,
formatDurationSeconds,
generateUUID,
expect(randomFloat).toBeLessThanOrEqual(0);
});
+ it('Verify extractTimeSeriesValues()', () => {
+ expect(extractTimeSeriesValues([])).toEqual([]);
+ expect(extractTimeSeriesValues([{ timestamp: Date.now(), value: 1.1 }])).toEqual([1.1]);
+ expect(
+ extractTimeSeriesValues([
+ { timestamp: Date.now(), value: 1.1 },
+ { timestamp: Date.now(), value: 2.2 },
+ ]),
+ ).toEqual([1.1, 2.2]);
+ });
+
it('Verify isObject()', () => {
expect(isObject('test')).toBe(false);
expect(isObject(undefined)).toBe(false);