Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should raise an error when call function with invalid arguments', () => {
// $ExpectError: need a string
stopLocationUpdatesAsync(69);
});
});
it('should passes when used properly', () => {
stopLocationUpdatesAsync('taskName').then(result => {
(result: void);
// $ExpectError: check any
(result: string);
});
});
async stopLocationUpdates() {
await Location.stopLocationUpdatesAsync(LOCATION_UPDATES_TASK);
this.setState({ isTracking: false });
}
async stopLocationUpdates() {
await Location.stopLocationUpdatesAsync(LOCATION_UPDATES_TASK);
this.setState({ isTracking: false });
}