Skip to content

Commit

Permalink
test: add test for aliases case-insensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed May 24, 2023
1 parent 516bbe8 commit 09e5d7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/crontime.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ describe('crontime', () => {
}).toThrow();
});

it('should be case-insensitive for aliases (* * * * JAN,FEB MON,TUE)', () => {
expect(() => {
new cron.CronTime('* * * * JAN,FEB MON,TUE', null, null);
}).not.toThrow();
});

it('should test too few fields', () => {
expect(() => {
new cron.CronTime('* * * *', null, null);
Expand Down

0 comments on commit 09e5d7c

Please sign in to comment.