diff --git a/test/unit/services/TriggerService.test.js b/test/unit/services/TriggerService.test.js index 20b36bbcb..266411c5d 100644 --- a/test/unit/services/TriggerService.test.js +++ b/test/unit/services/TriggerService.test.js @@ -148,7 +148,8 @@ describe('The TriggerService', function () { } catch (err) { expect(err).to.be.an('error'); expect(err.name).to.eq("RBValidationError"); - expect(err.message).to.eq("Title is required Submission format is invalid"); + const errorMap = JSON.parse(err.message) + expect(errorMap.errorFieldList[0].label).to.eq("Title is required"); } });