Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 4785-test-refactor-email-templates

This commit is contained in:
Wolfgang Huß 2022-06-22 14:26:29 +02:00
commit 3adfab34c5

View File

@ -119,7 +119,8 @@ describe('Location Service', () => {
lang: 'en', lang: 'en',
} }
const result = await query({ query: queryLocations, variables }) const result = await query({ query: queryLocations, variables })
expect(result.data.queryLocations).toEqual([ expect(result.data.queryLocations).toEqual(
expect.arrayContaining([
{ id: 'place.14094307404564380', place_name: 'Berlin, Germany' }, { id: 'place.14094307404564380', place_name: 'Berlin, Germany' },
{ {
id: expect.stringMatching(/^place\.[0-9]+$/), id: expect.stringMatching(/^place\.[0-9]+$/),
@ -137,7 +138,8 @@ describe('Location Service', () => {
id: expect.stringMatching(/^place\.[0-9]+$/), id: expect.stringMatching(/^place\.[0-9]+$/),
place_name: 'Berlin Heights, Ohio, United States', place_name: 'Berlin Heights, Ohio, United States',
}, },
]) ]),
)
}) })
it('query Location existing in different language', async () => { it('query Location existing in different language', async () => {