Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix the provided Jest mock so it works with the instructions in …
- Loading branch information
1 parent
82a484a
commit a24ebb1
Showing
2 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This hook returns an object. But in its mock, mockResolvedValueOnce has been used, which looks like it resolves a value. How does it comply here?
function useNetInfo(configuration?: Partial<Types.NetInfoConfiguration> | undefined): Types.NetInfoState
A React Hook which updates when the connection state changes.
@returns — The connection state.