simple spec for user profile

This commit is contained in:
Moriz Wahl 2021-06-13 19:26:05 +02:00
parent 8e797776ea
commit 088b144ee8

View File

@ -0,0 +1,23 @@
import { shallowMount } from '@vue/test-utils'
import UserProfile from './UserProfile'
const localVue = global.localVue
describe('UserProfile', () => {
let wrapper
const Wrapper = () => {
return shallowMount(UserProfile, { localVue })
}
describe('shallowMount', () => {
beforeEach(() => {
wrapper = Wrapper()
})
it('renders the component', () => {
expect(wrapper.findComponent({ name: 'user-card' }).exists()).toBeTruthy()
})
})
})