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