Skip to content

Commit

Permalink
fix mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Jan 22, 2025
1 parent fa5593d commit f2a7ad5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/mocks/src/apollo/contractPackageDataMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ function mockContractPackageSubmittedWithQuestions(
__typename: 'ContractQuestion' as const,
id: 'dmco-question-1-id',
contractID,
round: 1,
createdAt: new Date('2022-12-16'),
addedBy: mockValidCMSUser({
divisionAssignment: null,
Expand Down Expand Up @@ -548,6 +549,7 @@ function mockContractPackageSubmittedWithQuestions(
contractID,
createdAt: new Date('2022-12-18'),
addedBy: mockValidCMSUser() as CmsUser,
round: 1,
documents: [
{
s3URL: 's3://bucketname/key/dmco-question-2-document-1',
Expand Down Expand Up @@ -576,6 +578,7 @@ function mockContractPackageSubmittedWithQuestions(
id: 'dmcp-question-1-id',
contractID,
createdAt: new Date('2022-12-15'),
round: 1,
addedBy: mockValidCMSUser({
divisionAssignment: 'DMCP',
}) as CmsUser,
Expand Down Expand Up @@ -617,6 +620,7 @@ function mockContractPackageSubmittedWithQuestions(
id: 'oact-question-1-id',
contractID,
createdAt: new Date('2022-12-14'),
round: 1,
addedBy: mockValidCMSUser({
divisionAssignment: 'OACT',
}) as CmsUser,
Expand Down Expand Up @@ -656,6 +660,7 @@ function mockContractPackageSubmittedWithQuestions(
addedBy: mockValidCMSUser({
divisionAssignment: 'OACT',
}) as CmsUser,
round: 2,
documents: [
{
s3URL: 's3://bucketname/key/oact-question-1-document-1',
Expand Down Expand Up @@ -1508,6 +1513,7 @@ function mockContractPackageApprovedWithQuestions(
addedBy: mockValidCMSUser({
divisionAssignment: null,
}) as CmsUser,
round: 1,
documents: [
{
s3URL: 's3://bucketname/key/dmco-question-1-document-1',
Expand Down Expand Up @@ -1542,6 +1548,7 @@ function mockContractPackageApprovedWithQuestions(
contractID,
createdAt: new Date('2022-12-18'),
addedBy: mockValidCMSUser() as CmsUser,
round: 2,
documents: [
{
s3URL: 's3://bucketname/key/dmco-question-2-document-1',
Expand Down Expand Up @@ -1570,6 +1577,7 @@ function mockContractPackageApprovedWithQuestions(
id: 'dmcp-question-1-id',
contractID,
createdAt: new Date('2022-12-15'),
round: 1,
addedBy: mockValidCMSUser({
divisionAssignment: 'DMCP',
}) as CmsUser,
Expand Down Expand Up @@ -1614,6 +1622,7 @@ function mockContractPackageApprovedWithQuestions(
addedBy: mockValidCMSUser({
divisionAssignment: 'OACT',
}) as CmsUser,
round: 1,
documents: [
{
s3URL: 's3://bucketname/key/oact-question-1-document-1',
Expand Down Expand Up @@ -1647,6 +1656,7 @@ function mockContractPackageApprovedWithQuestions(
id: 'oact-question-2-id',
contractID: 'test-abc-123',
createdAt: new Date('2022-12-17'),
round: 2,
addedBy: mockValidCMSUser({
divisionAssignment: 'OACT',
}) as CmsUser,
Expand Down
4 changes: 4 additions & 0 deletions packages/mocks/src/apollo/questionResponseDataMocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function mockQuestionsPayload(
downloadURL: expect.any(String),
},
],
round: 1,
division: 'DMCO',
responses: [
{
Expand Down Expand Up @@ -56,6 +57,7 @@ function mockQuestionsPayload(
contractID,
createdAt: new Date('2022-12-18'),
addedBy: mockValidCMSUser() as CmsUser,
round: 1,
documents: [
{
s3URL: 's3://bucketname/key/dmco-question-2-document-1',
Expand Down Expand Up @@ -110,6 +112,7 @@ function mockQuestionsPayload(
},
],
division: 'DMCP',
round: 1,
responses: [
{
__typename: 'QuestionResponse' as const,
Expand Down Expand Up @@ -143,6 +146,7 @@ function mockQuestionsPayload(
addedBy: mockValidCMSUser({
divisionAssignment: 'OACT',
}) as CmsUser,
round: 1,
documents: [
{
s3URL: 's3://bucketname/key/oact-question-1-document-1',
Expand Down

0 comments on commit f2a7ad5

Please sign in to comment.