From f5e1c07be29275926212f5c5130a20dde1e93976 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 5 Dec 2020 23:14:48 +0100 Subject: [PATCH] Fix typo in test --- test/keys.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/keys.test.js b/test/keys.test.js index 370855b..50d003a 100644 --- a/test/keys.test.js +++ b/test/keys.test.js @@ -85,14 +85,14 @@ describe('keys.fetch.hkp', () => { openpgp.key.Key ) }) - it('should return undefined when provided an invalid fingerprint', async () => { + it('should reject when provided an invalid fingerprint', async () => { return expect( doipjs.keys.fetch.hkp('4637202523e7c1309ab79e99ef2dc5827b445f4b') ).to.eventually.be.rejectedWith( '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( doipjs.keys.fetch.hkp('invalid@doip.rocks') ).to.eventually.be.rejectedWith(