Skip to content

Commit

Permalink
moved from basichtml to linkedom
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Jan 30, 2021
1 parent c97a021 commit 7310a9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@rollup/plugin-babel": "^5.2.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"ascjs": "^4.0.1",
"basichtml": "^2.3.0",
"coveralls": "^3.1.0",
"linkedom": "^0.1.39",
"nyc": "^15.1.0",
"rollup": "^2.26.5",
"rollup-plugin-terser": "^7.0.0",
Expand Down
6 changes: 5 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {document} = require('basichtml').init();
const {document, HTMLElement} = require('linkedom').parseHTML('');
global.document = document;

if (!('onclick' in HTMLElement.prototype))
HTMLElement.prototype.onclick = function () {};

const {aria, attribute, data, event, ref, setter, text} = require('../cjs');

Expand Down

0 comments on commit 7310a9e

Please sign in to comment.