Skip to content

Commit

Permalink
Fix remaining test failures by updating syntax in countBy() methods t…
Browse files Browse the repository at this point in the history
…o work with TypeORM 0.3.x.
  • Loading branch information
Matthew-Grayson committed Apr 25, 2024
1 parent 3e494c1 commit a469b53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/tasks/test/scheduler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -776,7 +776,7 @@ describe('scheduler', () => {

expect(
await ScanTask.countBy({
scan,
scan: { id: scan.id },
status: 'queued'
})
).toEqual(10);
Expand Down

0 comments on commit a469b53

Please sign in to comment.