allow tests
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import * as base32 from "hi-base32";
|
||||
import { bufferToArrayBuffer, arrayBufferToBuffer } from "./misc";
|
||||
|
||||
if (window === undefined) {
|
||||
global.window = {
|
||||
crypto: require("crypto").webcrypto,
|
||||
} as any;
|
||||
}
|
||||
|
||||
const DEFAULT_ITER = 10000;
|
||||
|
||||
const getKeyIVFromPassword = async (
|
||||
|
||||
Reference in New Issue
Block a user