more safety measure

This commit is contained in:
Steve Walsh
2021-07-07 17:17:25 +01:00
parent a48f3e769c
commit d89076fea0
3 changed files with 61 additions and 34 deletions

View File

@@ -71,4 +71,13 @@ describe.only('Unit: PayloadValidator', () => {
payloadValidator.verify(modifiedEvent);
});
it('Should not die with initiating the class with bad object', () => {
const payloadValidator = new PayloadValidator({});
});
it('Should not die with initiating the class with bad object and then calling verify', () => {
const payloadValidator = new PayloadValidator({});
payloadValidator.verify({});
});
});