From e171e8eb0314df9920c7f9c381400513cd65db0c Mon Sep 17 00:00:00 2001 From: Artur Neumann Date: Tue, 5 Apr 2022 09:46:35 +0545 Subject: [PATCH] mock v-translate directive in views tests --- packages/web-app-files/tests/unit/views/views.shared.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web-app-files/tests/unit/views/views.shared.ts b/packages/web-app-files/tests/unit/views/views.shared.ts index 5a453fb08ee..657d0c3edd5 100644 --- a/packages/web-app-files/tests/unit/views/views.shared.ts +++ b/packages/web-app-files/tests/unit/views/views.shared.ts @@ -16,6 +16,11 @@ localVue.use(GetTextPlugin, { translations: 'does-not-matter.json', silent: true }) +// mock `v-translate` directive +localVue.directive('translate', { + // eslint-disable-next-line @typescript-eslint/no-empty-function + inserted: () => {} +}) const stubs = { 'create-and-upload': true,