forked from Mirrors/doipjs
Fix tests
This commit is contained in:
parent
e7fc47f955
commit
aebd0eabe8
2 changed files with 2 additions and 5 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in a new issue