Răsfoiți Sursa

test: Fix broken e2e test

Michael Bromley 4 ani în urmă
părinte
comite
e4a795ff7f
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/core/e2e/translations.e2e-spec.ts

+ 2 - 2
packages/core/e2e/translations.e2e-spec.ts

@@ -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 },
             );