From 5c63ca47d69a64f8d7c86642809d209e28f5dc27 Mon Sep 17 00:00:00 2001 From: Alexander Allen Date: Tue, 12 Dec 2023 16:37:06 -0600 Subject: [PATCH] mv data to mock --- packages/api/tests/api/expoJudgingSession/post.test.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/api/tests/api/expoJudgingSession/post.test.ts b/packages/api/tests/api/expoJudgingSession/post.test.ts index 73e151af..ac0adb84 100644 --- a/packages/api/tests/api/expoJudgingSession/post.test.ts +++ b/packages/api/tests/api/expoJudgingSession/post.test.ts @@ -14,12 +14,9 @@ const validatePayloadMock = getMock(validatePayload); describe('expoJudgingSession post endpoint', () => { it('should create an ExpoJudgingSession, add a createdBy, and return a 200', async () => { - validatePayloadMock.mockReturnValueOnce({ errorHandled: false } as any); + validatePayloadMock.mockReturnValueOnce({ errorHandled: false , data:{ projectIds: ['1', '2'] } } as any); const mockAdmin = { user: { id: 1 } }; - const req = createMockRequest({ - admin: mockAdmin as any, - query: { projectIds: ['1', '2'] }, - }); + const req = createMockRequest({ admin: mockAdmin as any }); const { entityManager, admin } = req; const res = createMockResponse(); const mockExpoJudgingSession = {