Fixup crontab tests
This commit is contained in:
@@ -439,7 +439,7 @@ describe('Apps', function () {
|
||||
expect(safe.error.message).to.be('Invalid cron configuration at line 2');
|
||||
|
||||
safe(() => apps._parseCrontab('* * * * 13 command')); // bad pattern
|
||||
expect(safe.error.message).to.be('Invalid cron pattern at line 1');
|
||||
expect(safe.error.message).to.be('Invalid cron pattern at line 1: Field value (13) is out of range');
|
||||
|
||||
safe(() => apps._parseCrontab('*/1 * * *\t* ')); // no command
|
||||
expect(safe.error.message).to.be('Invalid cron configuration at line 1');
|
||||
|
||||
Reference in New Issue
Block a user