21 lines
523 B
JavaScript
21 lines
523 B
JavaScript
import Vue from 'vue'
|
|
import { shallowMount, mount } from '@vue/test-utils'
|
|
import CoreuiVue from '@coreui/vue'
|
|
import Badges from '@/views/notifications/Badges'
|
|
|
|
Vue.use(CoreuiVue)
|
|
|
|
describe('Badges.vue', () => {
|
|
it('has a name', () => {
|
|
expect(Badges.name).toBe('Badges')
|
|
})
|
|
it('is Badges', () => {
|
|
const wrapper = shallowMount(Badges)
|
|
expect(wrapper.is(Badges)).toBe(true)
|
|
})
|
|
test('renders correctly', () => {
|
|
const wrapper = mount(Badges)
|
|
expect(wrapper.element).toMatchSnapshot()
|
|
})
|
|
})
|