import Vue from 'vue'
import { shallowMount, mount } from '@vue/test-utils'
import CoreuiVue from '@coreui/vue'
import Navbars from '@/views/base/Navbars'

Vue.use(CoreuiVue)

describe('Navbars.vue', () => {
  it('has a name', () => {
    expect(Navbars.name).toMatch('navbars')
  })
  it('is Vue instance', () => {
    const wrapper = shallowMount(Navbars)
    expect(wrapper.isVueInstance()).toBe(true)
  })
  it('is Navbars', () => {
    const wrapper = shallowMount(Navbars)
    expect(wrapper.is(Navbars)).toBe(true)
  })
  test('renders correctly', () => {
    const wrapper = shallowMount(Navbars)
    expect(wrapper.element).toMatchSnapshot()
  })
})
