Skip to content

Commit 4f01c76

Browse files
committed
update setup.js
- add HTMLElement for MW 1.42 and above
1 parent 8186bfa commit 4f01c76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/node-qunit/setup.js

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ function createDom() {
3737
global.window = dom.window;
3838
global.document = window.document;
3939
global.Node = window.Node;
40+
global.HTMLElement = dom.window.HTMLElement;
41+
global.customElements = dom.window.customElements;
4042
global.$ = global.jQuery = require('../../../../resources/lib/jquery/jquery.js');
4143

4244
return () => {

0 commit comments

Comments
 (0)