coverage data-download.spec.js

This commit is contained in:
Ulf Gebhardt 2021-04-25 20:35:45 +02:00
parent 3fda4f6770
commit 782f5dcce8
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -0,0 +1,32 @@
import { mount } from '@vue/test-utils'
import DataDownload from './data-download.vue'
const localVue = global.localVue
describe('data-download.vue', () => {
let wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
})
describe('mount', () => {
const Wrapper = () => {
return mount(DataDownload, {
mocks,
localVue,
})
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.is('.base-card')).toBe(true)
})
})
})