Skip to content

Commit

Permalink
[ML] fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Feb 17, 2021
1 parent 3e910c2 commit 224b3b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/ml/server/lib/alerts/alerting_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* 2.0.
*/

import { resolveTimeInterval } from './alerting_service';
import { resolveBucketSpanInSeconds } from './alerting_service';

describe('Alerting Service', () => {
test('should resolve maximum bucket interval', () => {
expect(resolveTimeInterval(['15m', '1h', '6h', '90s'])).toBe('43200s');
expect(resolveBucketSpanInSeconds(['15m', '1h', '6h', '90s'])).toBe(43200);
});
});

0 comments on commit 224b3b3

Please sign in to comment.