Skip to content

Commit

Permalink
test: tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Jun 3, 2022
1 parent 2bf5c90 commit 513d7ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Item/Item.router.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ describe('Item router', () => {
expect(Item.findByCollectionIds).toHaveBeenCalledWith(
[dbCollectionMock.id],
undefined,
undefined,
undefined
)
})
Expand Down Expand Up @@ -561,6 +562,7 @@ describe('Item router', () => {
})
expect(Item.findByCollectionIds).toHaveBeenCalledWith(
[dbCollectionMock.id],
undefined,
limit,
limit * (page - 1)
)
Expand All @@ -571,7 +573,7 @@ describe('Item router', () => {

describe('and the collection is a third party collection', () => {
beforeEach(() => {
;(Item.findByCollectionIds as jest.Mock).mockResolvedValueOnce([
;(Item.findByTPCollectionIdAndStatus as jest.Mock).mockResolvedValueOnce([
dbTPItem,
dbTPItemPublished,
dbTPItemNotPublished,
Expand Down

0 comments on commit 513d7ac

Please sign in to comment.