This file contains hidden or 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
| const MAX_TEST_RUNS = 10; | |
| /** | |
| * A typical DB response might look or might not look like this. | |
| * This object size and complexity is intentional. | |
| */ | |
| const response = { | |
| id: Math.random(), | |
| name: `Complex Object ${Math.random().toString()}`, | |
| details: { |
This file contains hidden or 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
| const getCurrentUserLocation = async (platform, coords, extendedOptions) => { | |
| // Default options. Can be overriden using extended options. | |
| const options = { | |
| enableHighAccuracy: true, | |
| timeout: 15000, | |
| maximumAge: 0, | |
| ...extendedOptions | |
| }; | |
| if (platform === 'ios') { |