diff --git a/tests/cron.test.ts b/tests/cron.test.ts index 9e75f939..89f822f2 100644 --- a/tests/cron.test.ts +++ b/tests/cron.test.ts @@ -3,6 +3,9 @@ import sinon from 'sinon'; import { CronJob, CronTime } from '../src'; describe('cron', () => { + // eslint-disable-next-line jest/no-standalone-expect + afterEach(() => expect.hasAssertions()); + describe('with seconds', () => { it('should run every second (* * * * * *)', () => { const clock = sinon.useFakeTimers(); diff --git a/tests/crontime.test.ts b/tests/crontime.test.ts index daa64ee3..5954a215 100644 --- a/tests/crontime.test.ts +++ b/tests/crontime.test.ts @@ -3,6 +3,9 @@ import sinon from 'sinon'; import { CronTime } from '../src'; describe('crontime', () => { + // eslint-disable-next-line jest/no-standalone-expect + afterEach(() => expect.hasAssertions()); + it('should test stars (* * * * * *)', () => { expect(() => { new CronTime('* * * * * *');