mirror of
https://github.com/nostr-connect/connect.git
synced 2025-12-17 21:24:19 +01:00
add request & test
This commit is contained in:
10
test/setupTests.ts
Normal file
10
test/setupTests.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
//setupTests.tsx
|
||||
import crypto from "crypto";
|
||||
import { TextEncoder, TextDecoder } from "util";
|
||||
|
||||
global.TextEncoder = TextEncoder;
|
||||
(global as any).TextDecoder = TextDecoder;
|
||||
|
||||
Object.defineProperty(global.self, 'crypto', {
|
||||
value: crypto.webcrypto
|
||||
});
|
||||
Reference in New Issue
Block a user