From 0400b9c9d97bb7690fdf58aa82c11edc67ebe6c0 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Thu, 24 Aug 2017 13:26:39 +0800 Subject: [PATCH] Fix test --- test/integration/public-key-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/public-key-test.js b/test/integration/public-key-test.js index 0d76031..a1e0d60 100644 --- a/test/integration/public-key-test.js +++ b/test/integration/public-key-test.js @@ -171,7 +171,7 @@ describe('Public Key Integration Tests', function() { expect(mailsSent.length).to.equal(4); await publicKey.put({publicKeyArmored: publicKeyArmored2, origin}); expect(mailsSent.length).to.equal(5); - await publicKey.verify(mailsSent[1].params); + await publicKey.verify(mailsSent[4].params); try { await publicKey.verify(mailsSent[0].params); @@ -182,7 +182,7 @@ describe('Public Key Integration Tests', function() { const gotten = await mongo.get({keyId: mailsSent[0].params.keyId}, DB_TYPE); expect(gotten.userIds[1].email).to.equal(primaryEmail2); expect(gotten.userIds[1].verified).to.be.false; - expect(gotten.userIds[1].nonce).to.equal(mailsSent[0].params.nonce); + expect(gotten.userIds[1].nonce).to.equal(mailsSent[1].params.nonce); }); it('should be able to verify multiple user ids', async () => {