From 9939ac5bb97e8830c09263c2d2cbf47f8303fca6 Mon Sep 17 00:00:00 2001 From: Jared Parnell Date: Wed, 31 Mar 2021 11:56:40 +0100 Subject: [PATCH] data-quality: schedule: Exception dates error type update --- .../schedule-exceptdates-match-recurrence-dates-spec.js | 2 +- .../data-quality/schedule-exceptdates-match-recurrence-dates.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/data-quality/schedule-exceptdates-match-recurrence-dates-spec.js b/src/rules/data-quality/schedule-exceptdates-match-recurrence-dates-spec.js index d4beccf..9778635 100644 --- a/src/rules/data-quality/schedule-exceptdates-match-recurrence-dates-spec.js +++ b/src/rules/data-quality/schedule-exceptdates-match-recurrence-dates-spec.js @@ -86,7 +86,7 @@ describe('ExceptDatesAreInSchedule', () => { expect(errors.length).toBe(1); for (const error of errors) { - expect(error.type).toBe(ValidationErrorType.MISSING_REQUIRED_FIELD); + expect(error.type).toBe(ValidationErrorType.EXCEPTION_DATES_NOT_IN_SCHEDULE); expect(error.severity).toBe(ValidationErrorSeverity.WARNING); } }); diff --git a/src/rules/data-quality/schedule-exceptdates-match-recurrence-dates.js b/src/rules/data-quality/schedule-exceptdates-match-recurrence-dates.js index 9e3a8b9..9c7eca3 100644 --- a/src/rules/data-quality/schedule-exceptdates-match-recurrence-dates.js +++ b/src/rules/data-quality/schedule-exceptdates-match-recurrence-dates.js @@ -24,7 +24,7 @@ module.exports = class ExceptDatesAreInSchedule extends Rule { }, category: ValidationErrorCategory.CONFORMANCE, severity: ValidationErrorSeverity.WARNING, - type: ValidationErrorType.MISSING_REQUIRED_FIELD, + type: ValidationErrorType.EXCEPTION_DATES_NOT_IN_SCHEDULE, }, }, };