Skip to content

Commit 11fc920

Browse files
committedApr 10, 2024
👨‍🔬 Update NPM-Mongo tests
- Minor wording fix
1 parent 92a67f6 commit 11fc920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/npm-mongo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ describe('Mongo - JoSk', function () {
229229
const timers = {};
230230
const runs = {};
231231
const createCronTask = async (uniqueName, cronTask, task, josk = jobCron) => {
232-
timers[uniqueName] = await josk.setInterval(function (done) {
232+
timers[uniqueName] = await josk.setInterval(function (ready) {
233233
if (task()) {
234-
done(parser.parseExpression(cronTask).next().toDate());
234+
ready(parser.parseExpression(cronTask).next().toDate());
235235
} else {
236236
josk.clearInterval(timers[uniqueName]);
237237
}

0 commit comments

Comments
 (0)
Please sign in to comment.