From dd91efc14266840d781ee8e63a75e256a21b9854 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Tue, 7 Feb 2023 14:02:04 +0100 Subject: [PATCH] test: fix nostr tests #1051 --- src/extension/background-script/nostr/__test__/nostr.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/background-script/nostr/__test__/nostr.test.ts b/src/extension/background-script/nostr/__test__/nostr.test.ts index 33ec724609..779fd65007 100644 --- a/src/extension/background-script/nostr/__test__/nostr.test.ts +++ b/src/extension/background-script/nostr/__test__/nostr.test.ts @@ -27,7 +27,7 @@ describe("nostr", () => { const bobNostr = new Nostr(bob.privateKey); - const decrypted = bobNostr.decrypt(alice.publicKey, encrypted); + const decrypted = await bobNostr.decrypt(alice.publicKey, encrypted); expect(decrypted).toMatch(message); }); @@ -42,7 +42,7 @@ describe("nostr", () => { let decrypted; try { - decrypted = carolNostr.decrypt(alice.publicKey, encrypted); + decrypted = await carolNostr.decrypt(alice.publicKey, encrypted); } catch (e) { decrypted = "error decrypting message"; }