mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
16 lines
350 B
JavaScript
16 lines
350 B
JavaScript
var nodeCrypto = require("crypto");
|
|
var jsdom = require("jsdom");
|
|
var dotenv = require("dotenv");
|
|
|
|
dotenv.config();
|
|
|
|
const dom = new jsdom.JSDOM("", {});
|
|
global.window = dom.window;
|
|
global.document = dom.window.document;
|
|
global.crypto = nodeCrypto;
|
|
|
|
global.HTMLParser = new dom.window.DOMParser().parseFromString(
|
|
"<body></body>",
|
|
"text/html"
|
|
);
|