/** * * author: Sand * since: 2016/11/28 */ "use strict"; let assert = require('assert'); let Schedule = require('../../../../src/server/models/schedule/schedule'); describe('Schedule API', function () { describe('When schedule job with 5 seconds', function () { it('should execute every 5 seconds', function () { let schedule = new Schedule(); schedule.cronSchedule('5 * * * * *', function () { console.log('execute at: ' + new Date()); }); }); }); });