init: seeding the project repo
This commit is contained in:
parent
5d56e62051
commit
63a59377b8
9 changed files with 129 additions and 2 deletions
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue