mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
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(
|
return expect(doipjs.claims.verify('noURI')).to.eventually.be.rejectedWith(
|
||||||
undefined
|
undefined
|
||||||
)
|
)
|
||||||
return expect(
|
|
||||||
doipjs.claims.verify('domain.org')
|
|
||||||
).to.eventually.be.rejectedWith(undefined)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
doipjs.serviceproviders.list.forEach((spName, i) => {
|
doipjs.serviceproviders.list.forEach((spName, i) => {
|
||||||
|
|
|
@ -58,12 +58,12 @@ describe('keys.fetch.uri', () => {
|
||||||
expect(
|
expect(
|
||||||
await doipjs.keys.fetch.uri(`hkp:${pubKeyFingerprint}`)
|
await doipjs.keys.fetch.uri(`hkp:${pubKeyFingerprint}`)
|
||||||
).to.be.instanceOf(openpgp.key.Key)
|
).to.be.instanceOf(openpgp.key.Key)
|
||||||
})
|
}).timeout('12s')
|
||||||
it('should reject when provided an invalid uri', () => {
|
it('should reject when provided an invalid uri', () => {
|
||||||
return expect(
|
return expect(
|
||||||
doipjs.keys.fetch.uri(`inv:${pubKeyFingerprint}`)
|
doipjs.keys.fetch.uri(`inv:${pubKeyFingerprint}`)
|
||||||
).to.eventually.be.rejectedWith('Invalid URI protocol')
|
).to.eventually.be.rejectedWith('Invalid URI protocol')
|
||||||
})
|
}).timeout('12s')
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('keys.fetch.hkp', () => {
|
describe('keys.fetch.hkp', () => {
|
||||||
|
|
Loading…
Reference in a new issue