Skip to content

Commit

Permalink
fix(utils): wrong check in toBeValidDto returnCount
Browse files Browse the repository at this point in the history
  • Loading branch information
tsa96 committed Nov 17, 2024
1 parent d8edf41 commit d0ecff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/test-utils/src/matchers/to-be-valid-dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ export function toBeValidPagedDto(
if (
totalCount &&
typeof totalCount === 'number' &&
received.returnCount !== totalCount
received.totalCount !== totalCount
)
return {
message: () =>
`expected returnCount of ${totalCount}, got ${received.totalCount}`,
`expected totalCount of ${totalCount}, got ${received.totalCount}`,
pass: false
};

Expand Down

0 comments on commit d0ecff5

Please sign in to comment.