From 5c235b4570d90349ebbf4b2714f8acef4389f9df Mon Sep 17 00:00:00 2001 From: Taha Abdelmoutaleb Cherfia <taha.cherfia@holi.team> Date: Tue, 23 Jan 2024 09:39:58 +0100 Subject: [PATCH] HOLI-7085: update unit tests --- app/geoapify_api_types.ts | 2 ++ app/geoapify_test.ts | 2 ++ app/geoapify_test_data.ts | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/app/geoapify_api_types.ts b/app/geoapify_api_types.ts index 6c958d8..27a71c1 100644 --- a/app/geoapify_api_types.ts +++ b/app/geoapify_api_types.ts @@ -2,6 +2,8 @@ export type GeoapifyPlace = { place_id: string; formatted: string; city?: string; + state?: string; + country: string; lon: number; lat: number; }; diff --git a/app/geoapify_test.ts b/app/geoapify_test.ts index 4cf7f66..b063f54 100644 --- a/app/geoapify_test.ts +++ b/app/geoapify_test.ts @@ -37,6 +37,8 @@ const placeFragment = ` id name city + state + country coordinates { latitude longitude diff --git a/app/geoapify_test_data.ts b/app/geoapify_test_data.ts index 490f44f..04ed3da 100644 --- a/app/geoapify_test_data.ts +++ b/app/geoapify_test_data.ts @@ -94,6 +94,8 @@ export const expectedPlacesAutocompleteGqlResponse = [ id: "51ac66e77e9826274059f9426dc08c114840f00101f901dcf3000000000000c00208", name: "Munich, Bavaria, Germany", city: "Munich", + state: "Bavaria", + country: "Germany", coordinates: { latitude: 48.1371079, longitude: 11.5753822, @@ -103,6 +105,8 @@ export const expectedPlacesAutocompleteGqlResponse = [ id: "51b1a888d349b558c059b0aa5e7ea7554840f00101f90194c5020000000000c00208", name: "Munich, ND, United States of America", city: "Munich", + state: "North Dakota", + country: "United States", coordinates: { latitude: 48.669174, longitude: -98.832631, -- GitLab