Skip to content

Commit 8262a81

Browse files
committed
make crypto available as a global on nip04 test.
1 parent 26e6da6 commit 8262a81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nip04.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-env jest */
22

3+
globalThis.crypto = require('crypto')
34
const {nip04, getPublicKey, generatePrivateKey} = require('./lib/nostr.cjs')
45

56
test('encrypt and decrypt message', async () => {

0 commit comments

Comments
 (0)