From e52c63e4e097b1df3f626ae9cc51926905fda621 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 12 Apr 2021 16:15:16 +0200 Subject: [PATCH] Fix serviceProvider patter --- test/claims.test.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test/claims.test.js b/test/claims.test.js index aa50006..372e9d8 100644 --- a/test/claims.test.js +++ b/test/claims.test.js @@ -38,22 +38,20 @@ const pattern = { uri: (x) => { return _.isString(x) || _.isNull(x) }, - fetch: (x) => { - return _.isString(x) || _.isNull(x) + request: { + fetcher: _.isString, + access: _.isInteger, + format: _.isInteger, + data: _.isObject, }, - useProxy: _.isBoolean, - format: _.isString, }, claim: { fingerprint: (x) => { return _.isString(x) || _.isNull(x) }, - format: _.isString, + format: _.isInteger, + relation: _.isInteger, path: _.isArray, - relation: _.isString, - }, - customRequestHandler: (x) => { - return _.isFunction(x) || _.isNull(x) || _.isUndefined(x) }, }