From edb4eea396a3c6df702d7701e1ca76eb8831d0c6 Mon Sep 17 00:00:00 2001 From: George Goodall Date: Thu, 16 Jan 2025 09:49:41 +0000 Subject: [PATCH] fix unit tests --- test/unit/middleware/entryIssueDetails.middleware.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/middleware/entryIssueDetails.middleware.test.js b/test/unit/middleware/entryIssueDetails.middleware.test.js index f742ad67..2a2c68a0 100644 --- a/test/unit/middleware/entryIssueDetails.middleware.test.js +++ b/test/unit/middleware/entryIssueDetails.middleware.test.js @@ -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', () => { @@ -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')) }) })