mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
31 lines
546 B
JavaScript
31 lines
546 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import NavBar from './NavBar.vue'
|
|
|
|
const localVue = global.localVue
|
|
|
|
const mocks = {
|
|
$store: {
|
|
state: {
|
|
openCreations: 1,
|
|
},
|
|
},
|
|
}
|
|
|
|
describe('NavBar', () => {
|
|
let wrapper
|
|
|
|
const Wrapper = () => {
|
|
return mount(NavBar, { localVue, mocks })
|
|
}
|
|
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('has a DIV element with the class.component-nabvar', () => {
|
|
expect(wrapper.find('.component-nabvar').exists()).toBeTruthy()
|
|
})
|
|
})
|
|
})
|