Skip to content

Commit

Permalink
[test] JSDOM now implements Ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jan 27, 2020
1 parent b1a63b4 commit f6cc175
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/utils/createDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@ function createDOM() {
}
});

// Not yet supported: https://github.com/jsdom/jsdom/issues/317
global.document.createRange = () => ({
setStart: () => {},
setEnd: () => {},
commonAncestorContainer: {
nodeName: 'BODY',
ownerDocument: document,
},
});

// required for wait-for-expect
// not added by jsdom by default
window.Date = global.Date;
Expand Down

0 comments on commit f6cc175

Please sign in to comment.