From 80d5dd45d697641554121030ae399cd94f6927c5 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 3 Nov 2020 22:32:43 +0100 Subject: [PATCH] Fix tests for URLs returning multiple service providers --- test/verify.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/verify.test.js b/test/verify.test.js index cb6e728..263dc7b 100644 --- a/test/verify.test.js +++ b/test/verify.test.js @@ -65,7 +65,7 @@ describe('verify', () => { it(`should return a valid object for the "${spName}" service provider`, async () => { const matches = await doipjs.verify(sp.tests[0].uri, null, {returnMatchesOnly: true}) expect(matches).to.be.a('array') - expect(matches).to.be.length(1) + expect(matches).to.be.length.above(0) expect(matches[0].serviceprovider.name).to.be.equal(spName) expect(matches[0]).to.matchPattern(pattern) })