Add testing for customRequestHandler

This commit is contained in:
Yarmo Mackenbach 2020-10-26 22:55:45 +01:00
parent 12e638f8de
commit fbdda1de91

View file

@ -43,7 +43,8 @@ const pattern = {
path: _.isArray, path: _.isArray,
relation: _.isString relation: _.isString
}, },
qr: (x) => { return _.isString(x) || _.isNull(x) } qr: (x) => { return _.isString(x) || _.isNull(x) },
customRequestHandler: (x) => { return _.isFunction(x) || _.isNull(x) || _.isUndefined(x) }
} }
describe('verify', () => { describe('verify', () => {