Skip to content

Commit

Permalink
Fixed expectations for failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbrazzatti committed Dec 16, 2024
1 parent 5f75e3a commit 1225331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/services/TriggerService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

});
Expand Down

0 comments on commit 1225331

Please sign in to comment.