Fix tests

This commit is contained in:
Yarmo Mackenbach 2021-03-22 17:23:49 +01:00
parent e7fc47f955
commit aebd0eabe8
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 2 additions and 5 deletions

View file

@ -66,9 +66,6 @@ describe('claims.verify', () => {
return expect(doipjs.claims.verify('noURI')).to.eventually.be.rejectedWith(
undefined
)
return expect(
doipjs.claims.verify('domain.org')
).to.eventually.be.rejectedWith(undefined)
})
doipjs.serviceproviders.list.forEach((spName, i) => {

View file

@ -58,12 +58,12 @@ describe('keys.fetch.uri', () => {
expect(
await doipjs.keys.fetch.uri(`hkp:${pubKeyFingerprint}`)
).to.be.instanceOf(openpgp.key.Key)
})
}).timeout('12s')
it('should reject when provided an invalid uri', () => {
return expect(
doipjs.keys.fetch.uri(`inv:${pubKeyFingerprint}`)
).to.eventually.be.rejectedWith('Invalid URI protocol')
})
}).timeout('12s')
})
describe('keys.fetch.hkp', () => {