mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
more safety measure
This commit is contained in:
@@ -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({});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user