From a469b5307b741f29e919d83a17d1ec6c5a576639 Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Thu, 25 Apr 2024 13:46:51 -0500 Subject: [PATCH] Fix remaining test failures by updating syntax in countBy() methods to work with TypeORM 0.3.x. --- backend/src/tasks/test/scheduler.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/tasks/test/scheduler.test.ts b/backend/src/tasks/test/scheduler.test.ts index 8d9075b7..6895f4f6 100644 --- a/backend/src/tasks/test/scheduler.test.ts +++ b/backend/src/tasks/test/scheduler.test.ts @@ -728,11 +728,11 @@ describe('scheduler', () => { expect( (await ScanTask.countBy({ - scan, + scan: { id: scan.id }, status: 'queued' })) + (await ScanTask.countBy({ - scan: scan2, + scan: { id: scan2.id }, status: 'queued' })) ).toEqual(1); @@ -776,7 +776,7 @@ describe('scheduler', () => { expect( await ScanTask.countBy({ - scan, + scan: { id: scan.id }, status: 'queued' }) ).toEqual(10);