10 lines
181 B
JavaScript
10 lines
181 B
JavaScript
|
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);
|
||
|
}
|