generated from coulomb/repo-seed
init: seeding the project repo
This commit is contained in:
12
test/setup.js
Normal file
12
test/setup.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user