From 03d1d29d9b4c02e3dc3438265622d408899fc960 Mon Sep 17 00:00:00 2001 From: Duncan Carter Date: Tue, 26 Nov 2024 17:10:31 +0000 Subject: [PATCH] Remove full stops from end of error message as colon follows in error report --- .../server/models/BulkImport/csv/crossValidateErrors.js | 2 +- .../test/unit/models/Bulkimport/csv/crossValidate.spec.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/server/models/BulkImport/csv/crossValidateErrors.js b/backend/server/models/BulkImport/csv/crossValidateErrors.js index e17163368c..96af382827 100644 --- a/backend/server/models/BulkImport/csv/crossValidateErrors.js +++ b/backend/server/models/BulkImport/csv/crossValidateErrors.js @@ -26,7 +26,7 @@ const TRANSFER_STAFF_RECORD_ERRORS = { column: 'UNIQUEWORKERID', _sourceFieldName: 'uniqueWorkerId', error: - "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID.", + "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID", }), SameRefsMovingToWorkplace: Object.freeze({ errCode: TRANSFER_STAFF_RECORD_BASE_ERROR_CODE + 3, diff --git a/backend/server/test/unit/models/Bulkimport/csv/crossValidate.spec.js b/backend/server/test/unit/models/Bulkimport/csv/crossValidate.spec.js index 17ed75223c..7f33db759d 100644 --- a/backend/server/test/unit/models/Bulkimport/csv/crossValidate.spec.js +++ b/backend/server/test/unit/models/Bulkimport/csv/crossValidate.spec.js @@ -304,7 +304,7 @@ describe('crossValidate', () => { errCode: 1402, errType: 'TRANSFERSTAFFRECORD_ERROR', error: - "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID.", + "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID", worker: movingWorker.uniqueWorkerId, name: movingWorker.localId, lineNumber: movingWorker.lineNumber, @@ -337,7 +337,7 @@ describe('crossValidate', () => { errCode: 1402, errType: 'TRANSFERSTAFFRECORD_ERROR', error: - "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID.", + "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID", worker: movingWorker.uniqueWorkerId, name: movingWorker.localId, lineNumber: movingWorker.lineNumber, @@ -424,7 +424,7 @@ describe('crossValidate', () => { errCode: 1402, errType: 'TRANSFERSTAFFRECORD_ERROR', error: - "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID.", + "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID", worker: movingWorker.uniqueWorkerId, name: movingWorker.localId, lineNumber: movingWorker.lineNumber, @@ -496,7 +496,7 @@ describe('crossValidate', () => { errCode: 1402, errType: 'TRANSFERSTAFFRECORD_ERROR', error: - "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID.", + "The UNIQUEWORKERID already exists in the LOCALESTID given in TRANSFERSTAFFRECORD. Use CHGUNIQUEWRKID to change this worker's UNIQUEWORKERID", worker: movingWorker.uniqueWorkerId, name: movingWorker.localId, lineNumber: movingWorker.lineNumber,