From aebd0eabe892c5ae28b69022a136e57d2c7a3d01 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 22 Mar 2021 17:23:49 +0100 Subject: [PATCH] Fix tests --- test/claims.test.js | 3 --- test/keys.test.js | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/test/claims.test.js b/test/claims.test.js index f9d3089..aa50006 100644 --- a/test/claims.test.js +++ b/test/claims.test.js @@ -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) => { diff --git a/test/keys.test.js b/test/keys.test.js index 9c74551..066546a 100644 --- a/test/keys.test.js +++ b/test/keys.test.js @@ -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', () => {