Skip to content

Commit

Permalink
fix: Add isPublished mock
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Jul 12, 2024
1 parent a76dfb1 commit 3da6de4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Item/Item.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ describe('Item Service', () => {
})
})

describe.only('and the item has less than the maximum amount of tags', () => {
describe('and the item has less than the maximum amount of tags', () => {
beforeEach(() => {
dbItem = {
...dbItemMock,
Expand All @@ -236,6 +236,9 @@ describe('Item Service', () => {
jest
.spyOn(CollectionService.prototype, 'getDBCollection')
.mockResolvedValueOnce(dbCollectionMock)
jest
.spyOn(CollectionService.prototype, 'isDCLPublished')
.mockResolvedValueOnce(false)
;(Item.upsert as jest.Mock).mockResolvedValueOnce(dbItem)
})
it('should not throw any error and return the inserted item', () => {
Expand Down

0 comments on commit 3da6de4

Please sign in to comment.