Skip to content

Commit

Permalink
Use modern HTML5 <!DOCTYPE>, as discussed in #3299 (#3937)
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine authored and cpojer committed Aug 24, 2017
1 parent 441bd0a commit fcf64d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-environment-jsdom/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class JSDOMEnvironment {

constructor(config: ProjectConfig): void {
// lazy require
this.document = JSDom.jsdom(/* markup */ undefined, {
this.document = JSDom.jsdom('<!DOCTYPE html>', {
url: config.testURL,
});
const global = (this.global = this.document.defaultView);
Expand Down

0 comments on commit fcf64d7

Please sign in to comment.