Skip to content

Commit

Permalink
[PRMT-4468] Fixed errors spotted in PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-nhs committed Feb 16, 2024
1 parent 7ac3eee commit 1cedea9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/__mocks__/uuid.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const MOCKED_UUID = '00000000-0000-4000-a000-000000000000';
const MOCKED_UUID_V1 = '9adcb64c-28c0-41ab-adc1-0242ef120002';
const MOCKED_UUID_V1 = '9adcb64c-28c0-11eb-adc1-0242ef120002';
const v4 = jest.fn().mockImplementation(() => MOCKED_UUID);
const v1 = jest.fn().mockImplementation(() => MOCKED_UUID_V1);
export { v4, MOCKED_UUID, v1, MOCKED_UUID_V1 };
8 changes: 4 additions & 4 deletions src/templates/__tests__/generate-ehr-acknowledgement.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ function parse(payload) {
describe('generateEhrAcknowledgement', () => {
it('should return the acknowledgement message template with correct values populated', async () => {
const parameters = {
acknowledgementMessageId: '11111111-28C0-41eb-ADC1-0242AC120002',
acknowledgementMessageId: '11111111-28C0-41EB-ADC1-0242AC120002',
receivingAsid: testData.emisPractise.asid,
sendingAsid: testData.mhs.asid,
acknowledgedMessageId: '22222222-28C0-41eb-ADC1-0242AC120002'
acknowledgedMessageId: '22222222-28C0-41EB-ADC1-0242AC120002'
};
const timestamp = dateFormat(Date.now(), 'yyyymmddHHMMss');
const payload = buildEhrAcknowledgementPayload(parameters);
Expand All @@ -30,10 +30,10 @@ describe('generateEhrAcknowledgement', () => {

it('should populate the acknowledgement message forcing message IDs to uppercase', async () => {
const parameters = {
acknowledgementMessageId: '11111111-28c0-41eb-adc1-0242ac120002',
acknowledgementMessageId: '11111111-28c0-41EB-adc1-0242ac120002',
receivingAsid: testData.emisPractise.asid,
sendingAsid: testData.mhs.asid,
acknowledgedMessageId: '22222222-28c0-41eb-adc1-0242ac120002'
acknowledgedMessageId: '22222222-28c0-41EB-adc1-0242ac120002'
};
const payload = buildEhrAcknowledgementPayload(parameters);

Expand Down

0 comments on commit 1cedea9

Please sign in to comment.