Skip to content

Commit

Permalink
adds one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
dplumlee committed Dec 9, 2024
1 parent 0843147 commit 1c6e505
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,11 @@ describe('utils', () => {
const from = calculateFromValue('5m', '0m');
expect(from).toEqual('now-300s');
});

test('should return formatted `from` value from rule schedule fields with invalid moment fields', () => {
const from = calculateFromValue('5', '5');
expect(from).toEqual('now-0s');
});
});

describe('getMaxCatchupRatio', () => {
Expand Down

0 comments on commit 1c6e505

Please sign in to comment.