Skip to content

Commit

Permalink
Merge branch 'calebdwilliams:main' into fix-element-not-calling-attac…
Browse files Browse the repository at this point in the history
…h-internals
  • Loading branch information
christophe-g authored May 24, 2024
2 parents df3a298 + 87b2d27 commit 4441adb
Show file tree
Hide file tree
Showing 8 changed files with 5,457 additions and 8,638 deletions.
15 changes: 0 additions & 15 deletions .babelrc

This file was deleted.

4 changes: 3 additions & 1 deletion jsdom-tests/jsdom.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ const polyfillContents = readFileSync('./dist/index.js', 'utf-8');

function test(title, condition) {
if (!condition) {
throw new Error(`${title} failed with error ${error}`);
throw new Error(`${title} failed with error`);
} else {
console.log(`${title} passed in JSDOM`);
}
}

test("no optional chaining operator in output",!polyfillContents.includes("?."));

JSDOM.fromFile('./jsdom-tests/index.html', {
runScripts: 'dangerously'
}).then(async ({ window }) => {
Expand Down
Loading

0 comments on commit 4441adb

Please sign in to comment.