mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
simple spec for user profile
This commit is contained in:
parent
8e797776ea
commit
088b144ee8
23
frontend/src/views/Pages/UserProfile.spec.js
Normal file
23
frontend/src/views/Pages/UserProfile.spec.js
Normal 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()
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user