File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 11import { mount } from '@vue/test-utils' ;
22import MismatchesTable from '@/Components/MismatchesTable.vue' ;
33import MismatchRow from '@/Components/MismatchRow.vue' ;
4+ import { createI18n } from 'vue-banana-i18n' ;
5+
6+ const i18n = createI18n ( {
7+ messages : { } ,
8+ locale : 'en' ,
9+ wikilinks : true
10+ } ) ;
411
512describe ( 'MismatchesTable.vue' , ( ) => {
613 it ( 'accepts a mismatches property' , ( ) => {
@@ -22,10 +29,7 @@ describe('MismatchesTable.vue', () => {
2229 const wrapper = mount ( MismatchesTable , {
2330 props : { mismatches } ,
2431 global : {
25- mocks : {
26- // Mock the banana-i18n plugin dependency
27- $i18n : key => key
28- }
32+ plugins : [ i18n ]
2933 }
3034 } ) ;
3135
@@ -59,10 +63,7 @@ describe('MismatchesTable.vue', () => {
5963 const wrapper = mount ( MismatchesTable , {
6064 props : { disabled, mismatches } ,
6165 global : {
62- mocks : {
63- // Mock the banana-i18n plugin dependency
64- $i18n : key => key
65- }
66+ plugins : [ i18n ]
6667 }
6768 } ) ;
6869
You can’t perform that action at this time.
0 commit comments