Skip to content

Commit

Permalink
Fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Sep 23, 2023
1 parent c32c608 commit 8365218
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const docDiv = document.getElementById(`div${x - 1}-${y - 1}`);
const patchedDom =
new JSDOM('<!doctype html><html><head></head><body></body></html>', {
runScripts: 'dangerously',
url: 'https://localhost/',
url: 'http://localhost/',
beforeParse: window => {
window.Element.prototype.matches = function (selector) {
return matches(selector, this);
Expand Down
10 changes: 5 additions & 5 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('exported api', () => {
'<!doctype html><html lang="en"><head></head><body></body></html>';
const domOpt = {
runScripts: 'dangerously',
url: 'https://localhost/'
url: 'http://localhost/'
};
let document;
beforeEach(() => {
Expand Down Expand Up @@ -2516,7 +2516,7 @@ describe('xml', () => {
it('should get matched node(s)', () => {
const { window } = new JSDOM('', {
runScripts: 'dangerously',
url: 'https://localhost/'
url: 'http://localhost/'
});
const domStr = `<html>
<body>
Expand All @@ -2533,7 +2533,7 @@ describe('xml', () => {
it('should not match', () => {
const { window } = new JSDOM('', {
runScripts: 'dangerously',
url: 'https://localhost/'
url: 'http://localhost/'
});
const domStr = `<html>
<body>
Expand All @@ -2549,7 +2549,7 @@ describe('xml', () => {
it('should get matched node(s)', () => {
const { window } = new JSDOM('', {
runScripts: 'dangerously',
url: 'https://localhost/'
url: 'http://localhost/'
});
const domStr = `<html>
<body>
Expand All @@ -2572,7 +2572,7 @@ describe('xml', () => {
const jsdom = (str = '') => {
const dom = new JSDOM(str, {
runScripts: 'dangerously',
url: 'https://localhost/',
url: 'http://localhost/',
beforeParse: window => {
window.Element.prototype.matches = function (selector) {
return matches(selector, this);
Expand Down

0 comments on commit 8365218

Please sign in to comment.