diff --git a/src/backend/tests/design-reviews.test.ts b/src/backend/tests/design-reviews.test.ts index 3ce79d55bf..bbf75e0aac 100644 --- a/src/backend/tests/design-reviews.test.ts +++ b/src/backend/tests/design-reviews.test.ts @@ -1,11 +1,10 @@ import { designReview1, designReview3, - designReview4, + designReview5, prismaDesignReview1, prismaDesignReview2, prismaDesignReview3, - prismaDesignReview4, sharedDesignReview1, teamType1 } from './test-data/design-reviews.test-data'; @@ -512,7 +511,7 @@ describe('Design Reviews', () => { ); expect(prisma.design_Review.findUnique).toHaveBeenCalledTimes(1); - expect(result).toEqual(designReview4); + expect(result).toEqual(designReview5); }); test('Design Review was not found', async () => { diff --git a/src/backend/tests/test-data/design-reviews.test-data.ts b/src/backend/tests/test-data/design-reviews.test-data.ts index 758900040a..813f82f35d 100644 --- a/src/backend/tests/test-data/design-reviews.test-data.ts +++ b/src/backend/tests/test-data/design-reviews.test-data.ts @@ -57,7 +57,7 @@ export const prismaDesignReview1: Prisma.Design_ReviewGetPayload = { + designReviewId: '1', + dateScheduled: new Date('2024-03-25'), + meetingTimes: [0, 1, 2, 3], + dateCreated: new Date('2024-03-10'), + userCreatedId: batman.userId, + userCreated: batman, + status: PrismaDesignReviewStatus.CONFIRMED, + teamTypeId: '1', + teamType: teamType1, + location: null, + isOnline: true, + isInPerson: false, + zoomLink: null, + dateDeleted: null, + userDeletedId: null, + docTemplateLink: null, + wbsElementId: 1, + requiredMembers: [batman], + optionalMembers: [wonderwoman], + confirmedMembers: [batman], + deniedMembers: [], + attendees: [batman], + userDeleted: null, + wbsElement: prismaWbsElement1 +}; + export const designReview3: DesignReview = { designReviewId: '2', dateScheduled: new Date('2024-03-25'), @@ -162,21 +189,21 @@ export const sharedDesignReview1: SharedDesignReview = { wbsNum: { carNumber: 1, projectNumber: 2, workPackageNumber: 0 } }; -export const designReview4: DesignReview = { +export const designReview5: DesignReview = { designReviewId: '1', dateScheduled: new Date('2024-03-25'), meetingTimes: [0, 1, 2, 3], dateCreated: new Date('2024-03-10'), userCreated: batman, + status: DesignReviewStatus.CONFIRMED, teamType: teamType1, isOnline: true, isInPerson: false, requiredMembers: [batman], optionalMembers: [wonderwoman], - confirmedMembers: [batman, wonderwoman], + confirmedMembers: [batman], deniedMembers: [], attendees: [batman], - status: DesignReviewStatus.UNCONFIRMED, wbsName: 'car', wbsNum: { carNumber: 1, projectNumber: 2, workPackageNumber: 0 } };