Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
intcreator committed May 25, 2023
1 parent 0dd0abc commit c7f4f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cron.test.js
Expand Up @@ -380,7 +380,7 @@ describe('cron', () => {
const callback = jest.fn();

var job = cron.job({

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (14.x, ubuntu-latest)

Unexpected var, use let or const instead

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (14.x, windows-latest)

Unexpected var, use let or const instead

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (14.x, macos-latest)

Unexpected var, use let or const instead

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (16.x, ubuntu-latest)

Unexpected var, use let or const instead

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (16.x, windows-latest)

Unexpected var, use let or const instead

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (16.x, macos-latest)

Unexpected var, use let or const instead

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Unexpected var, use let or const instead

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (18.x, windows-latest)

Unexpected var, use let or const instead

Check warning on line 382 in tests/cron.test.js

View workflow job for this annotation

GitHub Actions / build (18.x, macos-latest)

Unexpected var, use let or const instead
cronTime: new Date('* * * * * *'),
cronTime: '* * * * * *',
onTick: callback,
runOnInit: true
});
Expand All @@ -393,7 +393,7 @@ describe('cron', () => {

clock.restore();
job.stop();
expect(callback).toHaveBeenCalledTimes(3);
expect(callback).toHaveBeenCalledTimes(4);
});
});

Expand Down

0 comments on commit c7f4f3b

Please sign in to comment.