Skip to content

Commit

Permalink
mv data to mock
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderallen-aa committed Dec 12, 2023
1 parent b768747 commit 5c63ca4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/api/tests/api/expoJudgingSession/post.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5c63ca4

Please sign in to comment.