Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
16
node_modules/node-cron/test/pattern-validation/validate-test.js
generated
vendored
Normal file
16
node_modules/node-cron/test/pattern-validation/validate-test.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
var expect = require('expect.js');
|
||||
var cron = require('../../src/node-cron');
|
||||
|
||||
describe('public .validate() method', () => {
|
||||
it('should succeed with a valid expression', () => {
|
||||
var result = cron.validate('59 * * * *');
|
||||
expect(result).to.equal(true);
|
||||
});
|
||||
|
||||
it('should fail with an invalid expression', () => {
|
||||
var result = cron.validate('60 * * * *');
|
||||
expect(result).to.equal(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user