mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
34 lines
672 B
JavaScript
34 lines
672 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import FigureQrCode from './FigureQrCode'
|
|
|
|
const localVue = global.localVue
|
|
|
|
const propsData = {
|
|
link: '',
|
|
}
|
|
const mocks = {
|
|
$t: jest.fn((t) => t),
|
|
}
|
|
|
|
describe('FigureQrCode', () => {
|
|
let wrapper
|
|
|
|
const Wrapper = () => {
|
|
return mount(FigureQrCode, { localVue, mocks, propsData })
|
|
}
|
|
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('renders the Div Element ".figure-qr-code"', () => {
|
|
expect(wrapper.find('div.figure-qr-code').exists()).toBeTruthy()
|
|
})
|
|
|
|
it('renders the Div Element "q-r-canvas"', () => {
|
|
expect(wrapper.find('q-r-canvas'))
|
|
})
|
|
})
|
|
})
|