Add mock for .

This commit is contained in:
elweyn 2023-03-24 12:39:09 +01:00
parent 0ae9b9e908
commit e359fa59b3

View File

@ -6,12 +6,15 @@ const localVue = global.localVue
const propsData = { const propsData = {
link: '', link: '',
} }
const mocks = {
$t: jest.fn((t) => t),
}
describe('FigureQrCode', () => { describe('FigureQrCode', () => {
let wrapper let wrapper
const Wrapper = () => { const Wrapper = () => {
return mount(FigureQrCode, { localVue, propsData }) return mount(FigureQrCode, { localVue, mocks, propsData })
} }
describe('mount', () => { describe('mount', () => {