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); }