fix(core): update

This commit is contained in:
2019-06-17 16:54:39 +02:00
parent 9935396f2d
commit f221e9c0fa
11 changed files with 433 additions and 397 deletions

View File

@ -9,14 +9,14 @@ tap.test('should create a valid instance of cronmanager', async () => {
expect(testCronManager).to.be.instanceOf(smarttime.CronManager);
});
tap.test('should create a valid cronJon', async (tools) => {
tap.test('should create a valid cronJon', async tools => {
const done = tools.defer();
let counter = 0;
testCronManager.addCronjob('* * * * * *', () => {
if(counter === 10) {
if (counter === 10) {
done.resolve();
}
counter ++;
counter++;
console.log(`hey ${counter}`);
});
testCronManager.start();