Skip to content

Commit

Permalink
Fix some tests update function
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Jun 10, 2019
1 parent cb4e6e7 commit 3688977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/browser/fragments.test.js
Expand Up @@ -2281,7 +2281,7 @@ describe('Fragment', () => {
constructor(props) {
super(props);
this.state = { active: true };
updateA = () => this.setState(prev => ({ active: !prev }));
updateA = () => this.setState(prev => ({ active: !prev.active }));
}

render() {
Expand Down Expand Up @@ -2348,7 +2348,7 @@ describe('Fragment', () => {
constructor(props) {
super(props);
this.state = { active: true };
updateA = () => this.setState(prev => ({ active: !prev }));
updateA = () => this.setState(prev => ({ active: !prev.active }));
}

render() {
Expand Down

0 comments on commit 3688977

Please sign in to comment.