test: update tests

This commit is contained in:
woothu
2020-07-16 12:31:55 +02:00
parent 7ee3b0f4db
commit a4a0b68f19
41 changed files with 77 additions and 81 deletions
+2 -2
View File
@@ -19,11 +19,11 @@ describe('Breadcrumbs.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Breadcrumbs)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Breadcrumbs', () => {
const wrapper = shallowMount(Breadcrumbs)
expect(wrapper.is(Breadcrumbs)).toBe(true)
expect(wrapper.findComponent(Breadcrumbs)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = mount(Breadcrumbs)
+2 -2
View File
@@ -19,11 +19,11 @@ describe('Cards.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Cards)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Cards', () => {
const wrapper = shallowMount(Cards)
expect(wrapper.is(Cards)).toBe(true)
expect(wrapper.findComponent(Cards)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = mount(Cards)
+1 -1
View File
@@ -11,7 +11,7 @@ describe('Carousels.vue', () => {
})
it('is Carousels', () => {
const wrapper = shallowMount(Carousels)
expect(wrapper.is(Carousels)).toBe(true)
expect(wrapper.findComponent(Carousels)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = mount(Carousels)
+1 -1
View File
@@ -11,7 +11,7 @@ describe('Collapses.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Collapses)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = mount(Collapses)
+1 -1
View File
@@ -11,7 +11,7 @@ describe('Forms.vue', () => {
})
it('is Forms', () => {
const wrapper = shallowMount(Forms)
expect(wrapper.is(Forms)).toBe(true)
expect(wrapper.findComponent(Forms)).toBeTruthy()
})
// render random chackboxes
// test('renders correctly', () => {
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Jumbotrons.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Jumbotrons)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Jumbotrons', () => {
const wrapper = shallowMount(Jumbotrons)
expect(wrapper.is(Jumbotrons)).toBe(true)
expect(wrapper.findComponent(Jumbotrons)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Jumbotrons)
+2 -2
View File
@@ -11,11 +11,11 @@ describe('ListGroups.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(ListGroups)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is ListGroups', () => {
const wrapper = shallowMount(ListGroups)
expect(wrapper.is(ListGroups)).toBe(true)
expect(wrapper.findComponent(ListGroups)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(ListGroups)
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Navbars.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Navbars)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Navbars', () => {
const wrapper = shallowMount(Navbars)
expect(wrapper.is(Navbars)).toBe(true)
expect(wrapper.findComponent(Navbars)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Navbars)
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Navs.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Navs)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Navbars', () => {
const wrapper = shallowMount(Navs)
expect(wrapper.is(Navs)).toBe(true)
expect(wrapper.findComponent(Navs)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Navs)
+2 -2
View File
@@ -19,11 +19,11 @@ describe('Paginations.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Paginations)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Paginations', () => {
const wrapper = shallowMount(Paginations)
expect(wrapper.is(Paginations)).toBe(true)
expect(wrapper.findComponent(Paginations)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Paginations)
+2 -2
View File
@@ -14,10 +14,10 @@ describe('Popovers.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Popovers)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Popovers', () => {
const wrapper = shallowMount(Popovers)
expect(wrapper.is(Popovers)).toBe(true)
expect(wrapper.findComponent(Popovers)).toBeTruthy()
})
})
+2 -2
View File
@@ -19,11 +19,11 @@ describe('ProgressBars.vue', () => {
})
it('is Vue instance', () => {
const wrapper = mount(ProgressBars)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is ProgressBars', () => {
const wrapper = mount(ProgressBars)
expect(wrapper.is(ProgressBars)).toBe(true)
expect(wrapper.findComponent(ProgressBars)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(ProgressBars)
+2 -2
View File
@@ -14,11 +14,11 @@ describe('Switches.vue', () => {
})
it('is Vue instance', () => {
const wrapper = mount(Switches)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Switches', () => {
const wrapper = mount(Switches)
expect(wrapper.is(Switches)).toBe(true)
expect(wrapper.findComponent(Switches)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Switches)
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Table.vue', () => {
})
it('is Vue instance', () => {
const wrapper = mount(Table)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Table', () => {
const wrapper = mount(Table)
expect(wrapper.is(Table)).toBe(true)
expect(wrapper.findComponent(Table)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Table)
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Tables.vue', () => {
})
it('is Vue instance', () => {
const wrapper = mount(Tables)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Tables', () => {
const wrapper = mount(Tables)
expect(wrapper.is(Tables)).toBe(true)
expect(wrapper.findComponent(Tables)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Tables)
+2 -2
View File
@@ -17,11 +17,11 @@ describe('Tabs.vue', () => {
})
it('is Vue instance', () => {
const wrapper = mount(Tabs)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Tabs', () => {
const wrapper = mount(Tabs)
expect(wrapper.is(Tabs)).toBe(true)
expect(wrapper.findComponent(Tabs)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Tabs)
+2 -2
View File
@@ -14,11 +14,11 @@ describe('Tooltips.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Tooltips)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Tooltips', () => {
const wrapper = shallowMount(Tooltips)
expect(wrapper.is(Tooltips)).toBe(true)
expect(wrapper.findComponent(Tooltips)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = shallowMount(Tooltips)