test: update tests
This commit is contained in:
@@ -11,11 +11,11 @@ describe('Colors.vue', () => {
|
||||
})
|
||||
it('is Vue instance', () => {
|
||||
const wrapper = shallowMount(Colors)
|
||||
expect(wrapper.isVueInstance()).toBe(true)
|
||||
expect(wrapper.vm).toBeTruthy()
|
||||
})
|
||||
it('is Colors', () => {
|
||||
const wrapper = shallowMount(Colors)
|
||||
expect(wrapper.is(Colors)).toBe(true)
|
||||
expect(wrapper.findComponent(Colors)).toBeTruthy()
|
||||
})
|
||||
test('renders correctly', () => {
|
||||
const wrapper = mount(Colors)
|
||||
|
||||
@@ -11,11 +11,11 @@ describe('Typography.vue', () => {
|
||||
})
|
||||
it('is Vue instance', () => {
|
||||
const wrapper = shallowMount(Typography)
|
||||
expect(wrapper.isVueInstance()).toBe(true)
|
||||
expect(wrapper.vm).toBeTruthy()
|
||||
})
|
||||
it('is Typography', () => {
|
||||
const wrapper = shallowMount(Typography)
|
||||
expect(wrapper.is(Typography)).toBe(true)
|
||||
expect(wrapper.findComponent(Typography)).toBeTruthy()
|
||||
})
|
||||
test('renders correctly', () => {
|
||||
const wrapper = shallowMount(Typography)
|
||||
|
||||
Reference in New Issue
Block a user