mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-25 19:40:24 +00:00
* refactor: added new props to GetMetricQueryRange * refactor: review comments * chore: removed the unnecessary props in query-range payload * chore: name updated --------- Co-authored-by: Vishal Sharma <makeavish786@gmail.com> Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
15 lines
435 B
TypeScript
15 lines
435 B
TypeScript
// Write a test for getUpdatedStepInterval function in src/container/FormAlertRules/utils.ts
|
|
|
|
import { getUpdatedStepInterval } from './utils';
|
|
|
|
describe('getUpdatedStepInterval', () => {
|
|
it('should return 60', () => {
|
|
const result = getUpdatedStepInterval('5m0s');
|
|
expect(result).toEqual(60);
|
|
});
|
|
it('should return 60 for 10m0s', () => {
|
|
const result = getUpdatedStepInterval('10m0s');
|
|
expect(result).toEqual(60);
|
|
});
|
|
});
|