fix(core): update
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user