coverage settings.spec.js

This commit is contained in:
Ulf Gebhardt 2021-04-26 00:36:22 +02:00
parent f6075bc261
commit fc3e404ded
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

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