From c2e591da568bcb2e801923c2a6f17567aef2ad52 Mon Sep 17 00:00:00 2001 From: Mohammad Iqbal Date: Mon, 4 Dec 2023 16:36:40 +0000 Subject: [PATCH] Fixed Linting errors --- .../__tests__/health-record-requests.test.js | 2 +- .../message/__tests__/update-extract-for-sending.test.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/api/health-record-requests/__tests__/health-record-requests.test.js b/src/api/health-record-requests/__tests__/health-record-requests.test.js index c804201..4403c42 100644 --- a/src/api/health-record-requests/__tests__/health-record-requests.test.js +++ b/src/api/health-record-requests/__tests__/health-record-requests.test.js @@ -128,7 +128,7 @@ describe('POST /health-record-requests/:nhsNumber', () => { }); describe('NHS Number prefix checks', () => { - // TODO: REMOVE THESE TESTS + // TODO: REMOVE THESE TESTS // it('should not allow a health record request and return 404 when nhs number prefix is empty', async () => { // initializeConfig.mockReturnValueOnce({ nhsNumberPrefix: '' }); // const res = await request(app).post('/health-record-requests/1234567890').send(body); diff --git a/src/services/parser/message/__tests__/update-extract-for-sending.test.js b/src/services/parser/message/__tests__/update-extract-for-sending.test.js index 908cc59..b4d45ab 100644 --- a/src/services/parser/message/__tests__/update-extract-for-sending.test.js +++ b/src/services/parser/message/__tests__/update-extract-for-sending.test.js @@ -1,6 +1,4 @@ import { updateExtractForSending } from '../update-extract-for-sending'; -import { XmlParser } from '../../xml-parser/xml-parser'; -import isEqual from 'lodash.isequal'; import { readFileSync } from 'fs'; import * as path from 'path'; import { v4 } from 'uuid'; @@ -12,8 +10,8 @@ describe('updateExtractForSending', () => { const OLD_EHR_REQUEST_ID = v4(); const OLD_AUTHOR_ODS_CODE = 'OLD-AUTHOR-ODS-CODE'; const OLD_DEST_ODS_CODE = 'OLD-DESTINATION-ODS-CODE'; - - const NEW_SENDING_ASID = '200000001161'; + // TODO: Commented out because was failing when going for FOT V1 + // const NEW_SENDING_ASID = '200000001161'; const NEW_RECEIVING_ASID = '200000001162'; const NEW_AUTHOR_ODS_CODE = 'NEW-AUTHOR-ODS-CODE'; const NEW_DEST_ODS_CODE = 'NEW-DESTINATION-ODS-CODE';