Skip to content

Commit

Permalink
fix(jest, mock): addEventListener returns a function to match API (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Nov 17, 2021
1 parent a8bd5ff commit 82ca2ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jest/netinfo-mock.js
Expand Up @@ -22,5 +22,6 @@ const RNCNetInfoMock = {

RNCNetInfoMock.fetch.mockResolvedValue(defaultState);
RNCNetInfoMock.useNetInfo.mockReturnValue(defaultState);
RNCNetInfoMock.addEventListener.mockReturnValue(jest.fn());

module.exports = RNCNetInfoMock;

0 comments on commit 82ca2ad

Please sign in to comment.