mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: remvove unused code
This commit is contained in:
parent
9a3404fc01
commit
58932ddd17
@ -1,12 +0,0 @@
|
||||
import { IClientMetricsEnv } from '../../types/stores/client-metrics-store-v2';
|
||||
import { generateLastNHours, groupMetricsOnEnv, roundDownToHour } from './util';
|
||||
|
||||
test('should return list of 24 horus', () => {
|
||||
const hours = generateLastNHours(24, new Date(2021, 10, 10, 15, 30, 1, 0));
|
||||
|
||||
expect(hours).toHaveLength(24);
|
||||
expect(hours[0]).toStrictEqual(new Date(2021, 10, 10, 15, 0, 0));
|
||||
expect(hours[1]).toStrictEqual(new Date(2021, 10, 10, 14, 0, 0));
|
||||
expect(hours[2]).toStrictEqual(new Date(2021, 10, 10, 13, 0, 0));
|
||||
expect(hours[23]).toStrictEqual(new Date(2021, 10, 9, 16, 0, 0));
|
||||
});
|
@ -1,2 +0,0 @@
|
||||
//duplicate from client-metrics-store-v2.ts
|
||||
|
Loading…
Reference in New Issue
Block a user