9 lines
181 B
JavaScript
Executable file
9 lines
181 B
JavaScript
Executable file
const CronJob = require('../lib/cron.js').CronJob;
|
|
|
|
try {
|
|
new CronJob('NOT VALID', () => {
|
|
console.log('shouldn\'t get printed');
|
|
});
|
|
} catch(e) {
|
|
console.log('omg err', e);
|
|
}
|