Skip to content

Commit

Permalink
jest-environment-jsdom: add ? to options parameter (#5240)
Browse files Browse the repository at this point in the history
As suggested by @thymikee 
 in #5227 (comment)
  • Loading branch information
Kent C. Dodds authored and cpojer committed Jan 5, 2018
1 parent e776fdd commit 8b518a4
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 @@ -23,7 +23,7 @@ class JSDOMEnvironment {
errorEventListener: ?Function;
moduleMocker: ?ModuleMocker;

constructor(config: ProjectConfig, options: EnvironmentOptions = {}) {
constructor(config: ProjectConfig, options?: EnvironmentOptions = {}) {
this.dom = new JSDOM(
'<!DOCTYPE html>',
Object.assign(
Expand Down

0 comments on commit 8b518a4

Please sign in to comment.