1
0
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:
Ivar Conradi Østhus 2021-10-07 13:25:57 +02:00
parent 9a3404fc01
commit 58932ddd17
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09
2 changed files with 0 additions and 14 deletions

View File

@ -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));
});

View File

@ -1,2 +0,0 @@
//duplicate from client-metrics-store-v2.ts