Skip to content

Commit 17b38b4

Browse files
update UT
1 parent fdb2f36 commit 17b38b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/__tests__/Geolocation-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('react-native-geolocation', () => {
5050

5151
it('should add a success listener to the geolocation', () => {
5252
const watchID = Geolocation.watchPosition(() => {});
53-
expect(watchID).toEqual(0);
53+
expect(watchID).toEqual(1000);
5454
expect(NativeModules.RNCGeolocation.addListener.mock.calls[0][0]).toBe(
5555
'geolocationDidChange'
5656
);
@@ -61,7 +61,7 @@ describe('react-native-geolocation', () => {
6161
() => {},
6262
() => {}
6363
);
64-
expect(watchID).toEqual(0);
64+
expect(watchID).toEqual(1000);
6565
expect(NativeModules.RNCGeolocation.addListener.mock.calls[1][0]).toBe(
6666
'geolocationError'
6767
);

0 commit comments

Comments
 (0)