Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Jan 16, 2025
1 parent 5a65eb8 commit edb4eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/middleware/entryIssueDetails.middleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('entryIssueDetails.middleware.test.js', () => {
const next = vi.fn()
prepareEntry(req, res, next)

expect(next).toHaveBeenCalledWith(new Error('Missing required values on request object: issues[pageNumber-1]=missing resources=present'))
expect(next).toHaveBeenCalledWith(new Error('Missing required values on request object: entryIssues: present, entryIssues[0]: missing, resources: present'))
})

it('should throw error if resources is missing', () => {
Expand All @@ -150,7 +150,7 @@ describe('entryIssueDetails.middleware.test.js', () => {

prepareEntry(req, res, next)

expect(next).toHaveBeenCalledWith(new Error('Missing required values on request object: issues[pageNumber-1]=present resources=missing'))
expect(next).toHaveBeenCalledWith(new Error('Missing required values on request object: entryIssues: present, entryIssues[0]: present, resources: missing'))
})
})

Expand Down

0 comments on commit edb4eea

Please sign in to comment.