mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
30 lines
593 B
JavaScript
30 lines
593 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import UserTable from './UserTable.vue'
|
|
|
|
const localVue = global.localVue
|
|
|
|
describe('UserTable', () => {
|
|
let wrapper
|
|
|
|
const propsData = {
|
|
type: 'Type',
|
|
itemsUser: [],
|
|
fieldsTable: [],
|
|
creation: [],
|
|
}
|
|
|
|
const Wrapper = () => {
|
|
return mount(UserTable, { localVue, propsData })
|
|
}
|
|
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('has a DIV element with the class.component-user-table', () => {
|
|
expect(wrapper.find('.component-user-table').exists()).toBeTruthy()
|
|
})
|
|
})
|
|
})
|