Skip to content

Commit

Permalink
Merge pull request #6508 from Armanio/fix/jest-mobile-view
Browse files Browse the repository at this point in the history
feat(jest): use 'off' instead of 'removeListener'
  • Loading branch information
ndelangen authored Apr 13, 2019
2 parents 53a4aac + b8cb3de commit a7ee304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/jest/src/hoc/provideJestResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const provideTests = (Component: React.ComponentType<InjectedProps>) =>
const { api } = this.props;

this.stopListeningOnStory();
api.removeListener(ADD_TESTS, this.onAddTests);
api.off(ADD_TESTS, this.onAddTests);
}

onAddTests = ({ kind, storyName, tests }: HocState) => {
Expand Down

0 comments on commit a7ee304

Please sign in to comment.