Skip to content

Commit

Permalink
test: remove bad comment & add expect
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Oct 25, 2023
1 parent ab39ad4 commit 9826bc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/crontime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,14 @@ describe('crontime', () => {
});

it('should test invalid step', () => {
expect(() => {
new CronTime('* * * 1/ *');
}).toThrow();

expect(() => {
new CronTime('* * * 1/0 *');
}).toThrow();

// infinite loop when providing two or more zeros as step (#742)
expect(() => {
new CronTime('* * * 1/00 *');
}).toThrow();
Expand Down

0 comments on commit 9826bc1

Please sign in to comment.