Skip to content

Commit

Permalink
test: fix nostr tests #1051
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Feb 7, 2023
1 parent 7acf4ae commit dd91efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/background-script/nostr/__test__/nostr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand All @@ -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";
}
Expand Down

0 comments on commit dd91efc

Please sign in to comment.