123456789101112131415161718192021222324 |
- import Vue from 'vue'
- import { shallowMount } from '@vue/test-utils'
- import CoreuiVue from '@coreui/vue'
- import Navs from '@/views/base/Navs'
- Vue.use(CoreuiVue)
- describe('Navs.vue', () => {
- it('has a name', () => {
- expect(Navs.name).toBe('Navs')
- })
- it('is Vue instance', () => {
- const wrapper = shallowMount(Navs)
- expect(wrapper.vm).toBeTruthy()
- })
- it('is Navbars', () => {
- const wrapper = shallowMount(Navs)
- expect(wrapper.findComponent(Navs)).toBeTruthy()
- })
- test('renders correctly', () => {
- const wrapper = shallowMount(Navs)
- expect(wrapper.element).toMatchSnapshot()
- })
- })
|