Skip to content

Commit

Permalink
Added testURL because of jestjs/jest#6766
Browse files Browse the repository at this point in the history
  • Loading branch information
taras committed Jul 28, 2018
1 parent 9a90f15 commit 96a3b92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ module.exports = {
modulePaths: ['<rootDir>/src', '<rootDir>/node_modules'],
moduleNameMapper: {
'@microstates/react': '<rootDir>/dist/@microstates/react.umd.js'
}
},
testURL: 'http://localhost'
};
3 changes: 2 additions & 1 deletion src/microstates.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export default class Microstates extends PureComponent {
this._firstUpdate = false;
} else {
this.setState({ value });
this.props.onChange(value.state); }
this.props.onChange(value.state);
}
}

render() {
Expand Down

0 comments on commit 96a3b92

Please sign in to comment.