Skip to content

Commit

Permalink
Merge pull request #6733 from owncloud/fixTranslationPublicFilesTests
Browse files Browse the repository at this point in the history
[tests-only] mock v-translate directive in views tests
  • Loading branch information
kulmann authored Apr 5, 2022
2 parents 1e3884e + e171e8e commit 3953462
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/web-app-files/tests/unit/views/views.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3953462

Please sign in to comment.