diff --git a/nip04.test.js b/nip04.test.js index 90a4380..897c58c 100644 --- a/nip04.test.js +++ b/nip04.test.js @@ -1,5 +1,6 @@ /* eslint-env jest */ +globalThis.crypto = require('crypto') const {nip04, getPublicKey, generatePrivateKey} = require('./lib/nostr.cjs') test('encrypt and decrypt message', async () => {