From 7a313344cbddaca7bcb073b01a549bfe2a5c3852 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 15 Feb 2021 17:36:37 +0100 Subject: [PATCH] MAPBOX introduced district for US-Cities. So I used a German City instead --- .../schema/resolvers/users/location.spec.js | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/backend/src/schema/resolvers/users/location.spec.js b/backend/src/schema/resolvers/users/location.spec.js index 0c871b1682..41b784249e 100644 --- a/backend/src/schema/resolvers/users/location.spec.js +++ b/backend/src/schema/resolvers/users/location.spec.js @@ -30,46 +30,46 @@ const newlyCreatedNodesWithLocales = [ city: { id: expect.stringContaining('place'), type: 'place', - name: 'Hamburg', - nameEN: 'Hamburg', - nameDE: 'Hamburg', - namePT: 'Hamburg', - nameES: 'Hamburg', - nameFR: 'Hamburg', - nameIT: 'Hamburg', - nameRU: 'Хамбург', - nameNL: 'Hamburg', - namePL: 'Hamburg', - lng: -74.5763, - lat: 41.1534, + name: 'Welzheim', + nameEN: 'Welzheim', + nameDE: 'Welzheim', + namePT: 'Welzheim', + nameES: 'Welzheim', + nameFR: 'Welzheim', + nameIT: 'Welzheim', + nameRU: 'Вельцхайм', + nameNL: 'Welzheim', + namePL: 'Welzheim', + lng: 9.63444, + lat: 48.87472, }, state: { id: expect.stringContaining('region'), type: 'region', - name: 'New Jersey', - nameEN: 'New Jersey', - nameDE: 'New Jersey', - namePT: 'Nova Jérsia', - nameES: 'Nueva Jersey', - nameFR: 'New Jersey', - nameIT: 'New Jersey', - nameRU: 'Нью-Джерси', - nameNL: 'New Jersey', - namePL: 'New Jersey', + name: 'Baden-Württemberg', + nameDE: 'Baden-Württemberg', + nameEN: 'Baden-Württemberg', + nameES: 'Baden-Wurtemberg', + nameFR: 'Bade-Wurtemberg', + nameIT: 'Baden-Württemberg', + nameNL: 'Baden-Württemberg', + namePL: 'Badenia-Wirtembergia', + namePT: 'Baden-Württemberg', + nameRU: 'Баден-Вюртемберг', }, country: { id: expect.stringContaining('country'), type: 'country', - name: 'United States', - nameEN: 'United States', - nameDE: 'Vereinigte Staaten', - namePT: 'Estados Unidos', - nameES: 'Estados Unidos', - nameFR: 'États-Unis', - nameIT: "Stati Uniti d'America", - nameRU: 'Соединённые Штаты Америки', - nameNL: 'Verenigde Staten van Amerika', - namePL: 'Stany Zjednoczone', + name: 'Germany', + nameDE: 'Deutschland', + nameEN: 'Germany', + nameES: 'Alemania', + nameFR: 'Allemagne', + nameIT: 'Germania', + nameNL: 'Duitsland', + namePL: 'Niemcy', + namePT: 'Alemanha', + nameRU: 'Германия', }, }, ] @@ -170,7 +170,7 @@ describe('userMiddleware', () => { ...variables, id: 'updating-user', name: 'Updating user', - locationName: 'Hamburg, New Jersey, United States of America', + locationName: 'Welzheim, Baden-Württemberg, Germany', } await mutate({ mutation: updateUserMutation, variables }) const locations = await neode.cypher(