forked from Mirrors/doipjs
Fix typo in test
This commit is contained in:
parent
34dc50d031
commit
f5e1c07be2
1 changed files with 2 additions and 2 deletions
|
@ -85,14 +85,14 @@ describe('keys.fetch.hkp', () => {
|
||||||
openpgp.key.Key
|
openpgp.key.Key
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
it('should return undefined when provided an invalid fingerprint', async () => {
|
it('should reject when provided an invalid fingerprint', async () => {
|
||||||
return expect(
|
return expect(
|
||||||
doipjs.keys.fetch.hkp('4637202523e7c1309ab79e99ef2dc5827b445f4b')
|
doipjs.keys.fetch.hkp('4637202523e7c1309ab79e99ef2dc5827b445f4b')
|
||||||
).to.eventually.be.rejectedWith(
|
).to.eventually.be.rejectedWith(
|
||||||
'Key does not exist or could not be fetched'
|
'Key does not exist or could not be fetched'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
it('should return undefined when provided an invalid email address', async () => {
|
it('should reject when provided an invalid email address', async () => {
|
||||||
return expect(
|
return expect(
|
||||||
doipjs.keys.fetch.hkp('invalid@doip.rocks')
|
doipjs.keys.fetch.hkp('invalid@doip.rocks')
|
||||||
).to.eventually.be.rejectedWith(
|
).to.eventually.be.rejectedWith(
|
||||||
|
|
Loading…
Reference in a new issue