Skip to content

Commit

Permalink
fix(jest): mock return value not resolve value for useNetInfo mock (#515
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Grohden committed Nov 3, 2021
1 parent 0345015 commit cfde0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest/netinfo-mock.js
Expand Up @@ -21,6 +21,6 @@ const RNCNetInfoMock = {
};

RNCNetInfoMock.fetch.mockResolvedValue(defaultState);
RNCNetInfoMock.useNetInfo.mockResolvedValue(defaultState);
RNCNetInfoMock.useNetInfo.mockReturnValue(defaultState);

module.exports = RNCNetInfoMock;

0 comments on commit cfde0aa

Please sign in to comment.