Skip to content

Commit

Permalink
test: Fix broken e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Apr 23, 2021
1 parent 06da6d5 commit e4a795f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/e2e/translations.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ describe('Translation', () => {

describe('translations added manualy', () => {
it('shall receive custom error message', async () => {
const { customErrorMessage } = await adminClient.query(CUSTOM_ERROR);
const { customErrorMessage } = await adminClient.query(gql(CUSTOM_ERROR));
expect(customErrorMessage.errorCode).toBe('CUSTOM_ERROR');
expect(customErrorMessage.message).toBe(CUSTOM_ERROR_MESSAGE_TRANSLATION);
});

it('shall receive german error message', async () => {
const { customErrorMessage } = await adminClient.query(
CUSTOM_ERROR,
gql(CUSTOM_ERROR),
{},
{ languageCode: LanguageCode.de },
);
Expand Down

0 comments on commit e4a795f

Please sign in to comment.