diff --git a/resources/js/Components/MismatchesTable.vue b/resources/js/Components/MismatchesTable.vue index 72eb2c58..b661617c 100644 --- a/resources/js/Components/MismatchesTable.vue +++ b/resources/js/Components/MismatchesTable.vue @@ -22,27 +22,18 @@ - diff --git a/tests/Vue/Components/MismatchesTable.spec.js b/tests/Vue/Components/MismatchesTable.spec.js index 2993e7a5..ef2749cf 100644 --- a/tests/Vue/Components/MismatchesTable.spec.js +++ b/tests/Vue/Components/MismatchesTable.spec.js @@ -1,6 +1,13 @@ import { mount } from '@vue/test-utils'; import MismatchesTable from '@/Components/MismatchesTable.vue'; import MismatchRow from '@/Components/MismatchRow.vue'; +import { createI18n } from 'vue-banana-i18n'; + +const i18n = createI18n({ + messages: {}, + locale: 'en', + wikilinks: true +}); describe('MismatchesTable.vue', () => { it('accepts a mismatches property', () => { @@ -22,10 +29,7 @@ describe('MismatchesTable.vue', () => { const wrapper = mount(MismatchesTable, { props: { mismatches }, global: { - mocks: { - // Mock the banana-i18n plugin dependency - $i18n: key => key - } + plugins: [i18n] } }); @@ -59,10 +63,7 @@ describe('MismatchesTable.vue', () => { const wrapper = mount(MismatchesTable, { props: { disabled, mismatches }, global: { - mocks: { - // Mock the banana-i18n plugin dependency - $i18n: key => key - } + plugins: [i18n] } });