From 0597cead6a1bcfcdcfcbe4ab5d17509d48004be0 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 2 Feb 2021 02:51:59 +0100 Subject: [PATCH] - have blank lines between it in backend tests --- backend/src/schema/resolvers/users/location.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/schema/resolvers/users/location.spec.js b/backend/src/schema/resolvers/users/location.spec.js index aa257801f..7f85f3af9 100644 --- a/backend/src/schema/resolvers/users/location.spec.js +++ b/backend/src/schema/resolvers/users/location.spec.js @@ -105,6 +105,7 @@ describe('Location Service', () => { }) authenticatedUser = await user.toJson() }) + it('query Location existing', async () => { variables = { place: 'Berlin', @@ -119,6 +120,7 @@ describe('Location Service', () => { { id: 'place.4035845612564380', place_name: 'Berlin Township, New Jersey, United States' }, ]) }) + it('query Location existing in different language', async () => { variables = { place: 'Berlin', @@ -133,6 +135,7 @@ describe('Location Service', () => { { id: 'place.1165756679564380', place_name: 'Berlin, Massachusetts, Vereinigte Staaten' }, ]) }) + it('query Location not existing', async () => { variables = { place: 'GbHtsd4sdHa', @@ -141,6 +144,7 @@ describe('Location Service', () => { const result = await query({ query: queryLocations, variables }) expect(result.data.queryLocations).toEqual([]) }) + it('query Location without a place name given', async () => { variables = { place: '',