Skip to content

Commit c47b2c5

Browse files
committed
Stub HTMLElement and customElements for node tests
1 parent 8931049 commit c47b2c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/node/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-env mocha */
22
'use strict';
33

4+
// require('')
45
const path = require('path');
56
const assert = require('chai').assert;
67
const jsdom = require('jsdom');
@@ -11,6 +12,8 @@ suite('node acceptance tests', function () {
1112
global.navigator = _window.navigator;
1213
global.document = _window.document;
1314
global.screen = {};
15+
global.HTMLElement = _window.Element;
16+
global.window.customElements = {define: function () {}};
1417
});
1518

1619
teardown(function () {

0 commit comments

Comments
 (0)