mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-23 06:59:29 -07:00
Fix tests for URLs returning multiple service providers
This commit is contained in:
parent
336cbc9f83
commit
80d5dd45d6
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ describe('verify', () => {
|
||||||
it(`should return a valid object for the "${spName}" service provider`, async () => {
|
it(`should return a valid object for the "${spName}" service provider`, async () => {
|
||||||
const matches = await doipjs.verify(sp.tests[0].uri, null, {returnMatchesOnly: true})
|
const matches = await doipjs.verify(sp.tests[0].uri, null, {returnMatchesOnly: true})
|
||||||
expect(matches).to.be.a('array')
|
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].serviceprovider.name).to.be.equal(spName)
|
||||||
expect(matches[0]).to.matchPattern(pattern)
|
expect(matches[0]).to.matchPattern(pattern)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue