generated from coulomb/repo-seed
13 lines
350 B
JavaScript
13 lines
350 B
JavaScript
import { JSDOM } from "jsdom";
|
|
import { expect } from "chai";
|
|
|
|
const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`, {
|
|
url: "http://localhost"
|
|
});
|
|
|
|
global.window = dom.window;
|
|
global.document = dom.window.document;
|
|
global.customElements = dom.window.customElements;
|
|
global.HTMLElement = dom.window.HTMLElement;
|
|
global.expect = expect;
|