From fbdda1de91a76b3642dd736229f48fe3b373c6e1 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 26 Oct 2020 22:55:45 +0100 Subject: [PATCH] Add testing for customRequestHandler --- test/verify.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/verify.test.js b/test/verify.test.js index c89bf5b..cb6e728 100644 --- a/test/verify.test.js +++ b/test/verify.test.js @@ -43,7 +43,8 @@ const pattern = { path: _.isArray, 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', () => {