From f9a59229907031dea68f5c451bd9a09e4815a021 Mon Sep 17 00:00:00 2001
From: Ole Langbehn <ole.langbehn@inoio.de>
Date: Mon, 11 Sep 2023 15:40:47 +0200
Subject: [PATCH] fix tests

---
 app/common_test.ts   | 4 +---
 app/geoapify_test.ts | 8 ++++----
 app/server.ts        | 2 +-
 3 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/app/common_test.ts b/app/common_test.ts
index a7ebe42..c9b8817 100644
--- a/app/common_test.ts
+++ b/app/common_test.ts
@@ -33,7 +33,5 @@ export const processGqlRequest = (
     // deno-lint-ignore no-explicit-any
     .then((response: any) => response.json())
     // deno-lint-ignore no-explicit-any
-    .then((response: any) => {
-      logger.error(JSON.stringify(response.data))
-      return response.data});
+    .then((response: any) => response.data);
 };
diff --git a/app/geoapify_test.ts b/app/geoapify_test.ts
index a12c293..585748b 100644
--- a/app/geoapify_test.ts
+++ b/app/geoapify_test.ts
@@ -104,7 +104,7 @@ describe("places", () => {
       cacheEnabled: false,
       cacheTtlMsPlacesAutocomplete: 0,
       geoapifyApiKey: "",
-      fake: false
+      fake: false,
     });
     const places = await queryPlaces(
       graphQLServer,
@@ -128,7 +128,7 @@ describe("placeDetails", () => {
       cacheEnabled: false,
       cacheTtlMsPlacesAutocomplete: 0,
       geoapifyApiKey: "",
-      fake: false
+      fake: false,
     });
     const placeDetails = await queryPlaceDetails(
       graphQLServer,
@@ -146,7 +146,7 @@ describe("placeDetails", () => {
       cacheEnabled: false,
       cacheTtlMsPlacesAutocomplete: 0,
       geoapifyApiKey: "",
-      fake: false
+      fake: false,
     });
     const placeDetails = await queryPlaceDetails(
       graphQLServer,
@@ -164,7 +164,7 @@ describe("placeDetails", () => {
       cacheEnabled: false,
       cacheTtlMsPlacesAutocomplete: 0,
       geoapifyApiKey: "",
-      fake: false
+      fake: false,
     });
 
     const response = await queryPlaceDetails(
diff --git a/app/server.ts b/app/server.ts
index 54f1d76..59a43c6 100644
--- a/app/server.ts
+++ b/app/server.ts
@@ -34,7 +34,7 @@ const typeDefs = `
     
     type Query {
         placesAutocomplete(text: String!, limit: Int, level: String): [Place]!
-        placeDetails(id: String!): PlaceDetails
+        placeDetails(id: String!): PlaceDetails!
     }
 `;
 
-- 
GitLab