Skip to content

Commit

Permalink
Removed unnecessary gDSFP from test
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Mar 6, 2019
1 parent 0a041c5 commit 31af392
Showing 1 changed file with 2 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,18 +205,6 @@ describe('useSubscription', () => {
}

class Parent extends React.Component {
state = {};

static getDerivedStateFromProps(nextProps, prevState) {
if (nextProps.observed !== prevState.observed) {
return {
observed: nextProps.observed,
};
}

return null;
}

componentDidMount() {
log.push('Parent.componentDidMount');
}
Expand All @@ -226,7 +214,7 @@ describe('useSubscription', () => {
}

render() {
return <Subscription source={this.state.observed} />;
return <Subscription source={this.props.observed} />;
}
}

Expand Down Expand Up @@ -299,18 +287,6 @@ describe('useSubscription', () => {
}

class Parent extends React.Component {
state = {};

static getDerivedStateFromProps(nextProps, prevState) {
if (nextProps.observed !== prevState.observed) {
return {
observed: nextProps.observed,
};
}

return null;
}

componentDidMount() {
log.push('Parent.componentDidMount');
}
Expand All @@ -320,7 +296,7 @@ describe('useSubscription', () => {
}

render() {
return <Subscription source={this.state.observed} />;
return <Subscription source={this.props.observed} />;
}
}

Expand Down

0 comments on commit 31af392

Please sign in to comment.