Skip to content

Commit

Permalink
Use modern HTML5 <!DOCTYPE>, as discussed in #3299
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Jun 29, 2017
1 parent eb9be5a commit 3a824e8
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 3a824e8

Please sign in to comment.