From 17b38b4b76fd7ef209644a8c73177a8b069b7d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Chudziak?= Date: Sun, 1 Sep 2024 10:39:25 +0200 Subject: [PATCH] update UT --- js/__tests__/Geolocation-test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/__tests__/Geolocation-test.ts b/js/__tests__/Geolocation-test.ts index 8e053a0..90e5779 100644 --- a/js/__tests__/Geolocation-test.ts +++ b/js/__tests__/Geolocation-test.ts @@ -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' ); @@ -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' );