test: update tests
This commit is contained in:
@@ -17,11 +17,11 @@ describe('Alerts.vue', () => {
|
||||
})
|
||||
it('is Vue instance', () => {
|
||||
const wrapper = shallowMount(Alerts)
|
||||
expect(wrapper.isVueInstance()).toBe(true)
|
||||
expect(wrapper.vm).toBeTruthy()
|
||||
})
|
||||
it('is Alerts', () => {
|
||||
const wrapper = shallowMount(Alerts)
|
||||
expect(wrapper.is(Alerts)).toBe(true)
|
||||
expect(wrapper.findComponent(Alerts)).toBeTruthy()
|
||||
})
|
||||
test('renders correctly', () => {
|
||||
const wrapper = shallowMount(Alerts)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Vue from 'vue'
|
||||
import { shallowMount, mount } from '@vue/test-utils'
|
||||
import { mount } from '@vue/test-utils'
|
||||
import CoreuiVue from '@coreui/vue'
|
||||
import Badges from '@/views/notifications/Badges'
|
||||
|
||||
@@ -9,10 +9,6 @@ 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()
|
||||
|
||||
@@ -19,11 +19,11 @@ describe('Modals.vue', () => {
|
||||
})
|
||||
it('is Vue instance', () => {
|
||||
const wrapper = shallowMount(Modals)
|
||||
expect(wrapper.isVueInstance()).toBe(true)
|
||||
expect(wrapper.vm).toBeTruthy()
|
||||
})
|
||||
it('is Modals', () => {
|
||||
const wrapper = shallowMount(Modals)
|
||||
expect(wrapper.is(Modals)).toBe(true)
|
||||
expect(wrapper.findComponent(Modals)).toBeTruthy()
|
||||
})
|
||||
test('renders correctly', () => {
|
||||
const wrapper = shallowMount(Modals)
|
||||
|
||||
Reference in New Issue
Block a user