Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Jan 30, 2025
1 parent 9c044a3 commit aa34402
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hrm-domain/hrm-service/service-tests/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const contact1: NewContactRecord = {
conversationDuration: 14,
profileId: undefined,
identifierId: undefined,
definitionVersion: 'as-v1',
};

export const contact2: NewContactRecord = {
Expand Down Expand Up @@ -148,6 +149,7 @@ export const contact2: NewContactRecord = {
conversationDuration: 10,
profileId: undefined,
identifierId: undefined,
definitionVersion: 'as-v1',
};

export const nonData1: NewContactRecord = {
Expand Down Expand Up @@ -262,6 +264,7 @@ export const withTaskId: NewContactRecord = {
taskId: 'taskId',
profileId: undefined,
identifierId: undefined,
definitionVersion: 'as-v1',
};
export type CaseSectionInsert = {
section: NewCaseSection;
Expand Down
1 change: 1 addition & 0 deletions hrm-domain/integration-tests/transcripts/src/contactDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const createContact = async (newContact: NewContactRecord): Promise<Conta
const { isNewRecord, ...created }: CreateResultRecord =
await conn.one<CreateResultRecord>(INSERT_CONTACT_SQL, {
...newContact,
definitionVersion: 'as-v1',
identifierId: identifier.id,
profileId: profile.id,
accountSid: ACCOUNT_SID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const MINIMAL_CONTACT: NewContactRecord = {
twilioWorkerId: 'WK-integration-test-counselor',
taskId: 'TK-integration-test',

definitionVersion: 'as-v1',
helpline: '',
number: '',
timeOfContact: new Date().toISOString(),
Expand Down

0 comments on commit aa34402

Please sign in to comment.