Skip to content

Commit

Permalink
update UT
Browse files Browse the repository at this point in the history
  • Loading branch information
michalchudziak authored Sep 1, 2024
1 parent fdb2f36 commit 17b38b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/__tests__/Geolocation-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('react-native-geolocation', () => {

it('should add a success listener to the geolocation', () => {
const watchID = Geolocation.watchPosition(() => {});
expect(watchID).toEqual(0);
expect(watchID).toEqual(1000);
expect(NativeModules.RNCGeolocation.addListener.mock.calls[0][0]).toBe(
'geolocationDidChange'
);
Expand All @@ -61,7 +61,7 @@ describe('react-native-geolocation', () => {
() => {},
() => {}
);
expect(watchID).toEqual(0);
expect(watchID).toEqual(1000);
expect(NativeModules.RNCGeolocation.addListener.mock.calls[1][0]).toBe(
'geolocationError'
);
Expand Down

0 comments on commit 17b38b4

Please sign in to comment.