From fe7b9f9de1fd72e60da84649793b1094023c9ed9 Mon Sep 17 00:00:00 2001 From: d-lukutin <101016650+d-lukutin@users.noreply.github.com> Date: Fri, 12 May 2023 19:21:52 +0300 Subject: [PATCH] update test --- tests/e2e/cron-jobs.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/e2e/cron-jobs.spec.ts b/tests/e2e/cron-jobs.spec.ts index 84ce4a52..5e72abea 100644 --- a/tests/e2e/cron-jobs.spec.ts +++ b/tests/e2e/cron-jobs.spec.ts @@ -115,9 +115,7 @@ describe('Cron', () => { await app.init(); const registry = app.get(SchedulerRegistry); - expect(() => { - registry.getCronJob('DISABLED'); - }).toThrow(); + expect(registry.getCronJob('DISABLED').running).toBeFalsy(); }); it(`should return cron id by name`, async () => {