Skip to content

Commit

Permalink
Add doctype to test environment (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmichalina authored and thymikee committed Oct 8, 2017
1 parent 19e9331 commit 1229bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testEnvironment.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class JSDOMEnvironment {
constructor(config) {
// lazy require
const {JSDOM} = require('jsdom');

this.document = new JSDOM(undefined, {
this.document = new JSDOM('<!doctype html>', {
url: config.testURL,
runScripts: 'dangerously'
});
Expand Down

0 comments on commit 1229bd8

Please sign in to comment.