gradido/admin/src/components/NavBar.spec.js
2021-11-19 15:44:09 +01:00

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()
})
})
})