Skip to content

Commit a4a0b68

Browse files
committed
test: update tests
1 parent 7ee3b0f commit a4a0b68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+77
-81
lines changed

tests/unit/App.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ describe('App.vue', () => {
1919
localVue,
2020
router
2121
})
22-
expect(wrapper.isVueInstance()).toBe(true)
22+
expect(wrapper.vm).toBeTruthy()
2323
})
2424
it('is App', () => {
2525
const wrapper = shallowMount(App, {
2626
localVue,
2727
router
2828
})
29-
expect(wrapper.is(App)).toBe(true)
29+
expect(wrapper.findComponent(App)).toBeTruthy()
3030
})
3131
})

tests/unit/containers/TheContainer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ describe('TheContainer.vue', () => {
3737
localVue,
3838
router
3939
})
40-
expect(wrapper.isVueInstance()).toBe(true)
40+
expect(wrapper.vm).toBeTruthy()
4141
})
4242
})

tests/unit/views/Dashboard.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ describe('Dashboard.vue', () => {
2020
})
2121
it('is Vue instance', () => {
2222
const wrapper = shallowMount(Dashboard)
23-
expect(wrapper.isVueInstance()).toBe(true)
23+
expect(wrapper.vm).toBeTruthy()
2424
})
2525
it('is Dashboard', () => {
2626
const wrapper = shallowMount(Dashboard)
27-
expect(wrapper.is(Dashboard)).toBe(true)
27+
expect(wrapper.findComponent(Dashboard)).toBeTruthy()
2828
})
2929
it('should render correct content', () => {
3030
const wrapper = shallowMount(Dashboard)

tests/unit/views/base/Breadcrumbs.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ describe('Breadcrumbs.vue', () => {
1919
})
2020
it('is Vue instance', () => {
2121
const wrapper = shallowMount(Breadcrumbs)
22-
expect(wrapper.isVueInstance()).toBe(true)
22+
expect(wrapper.vm).toBeTruthy()
2323
})
2424
it('is Breadcrumbs', () => {
2525
const wrapper = shallowMount(Breadcrumbs)
26-
expect(wrapper.is(Breadcrumbs)).toBe(true)
26+
expect(wrapper.findComponent(Breadcrumbs)).toBeTruthy()
2727
})
2828
test('renders correctly', () => {
2929
const wrapper = mount(Breadcrumbs)

tests/unit/views/base/Cards.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ describe('Cards.vue', () => {
1919
})
2020
it('is Vue instance', () => {
2121
const wrapper = shallowMount(Cards)
22-
expect(wrapper.isVueInstance()).toBe(true)
22+
expect(wrapper.vm).toBeTruthy()
2323
})
2424
it('is Cards', () => {
2525
const wrapper = shallowMount(Cards)
26-
expect(wrapper.is(Cards)).toBe(true)
26+
expect(wrapper.findComponent(Cards)).toBeTruthy()
2727
})
2828
test('renders correctly', () => {
2929
const wrapper = mount(Cards)

tests/unit/views/base/Carousels.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('Carousels.vue', () => {
1111
})
1212
it('is Carousels', () => {
1313
const wrapper = shallowMount(Carousels)
14-
expect(wrapper.is(Carousels)).toBe(true)
14+
expect(wrapper.findComponent(Carousels)).toBeTruthy()
1515
})
1616
test('renders correctly', () => {
1717
const wrapper = mount(Carousels)

tests/unit/views/base/Collapses.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('Collapses.vue', () => {
1111
})
1212
it('is Vue instance', () => {
1313
const wrapper = shallowMount(Collapses)
14-
expect(wrapper.isVueInstance()).toBe(true)
14+
expect(wrapper.vm).toBeTruthy()
1515
})
1616
test('renders correctly', () => {
1717
const wrapper = mount(Collapses)

tests/unit/views/base/Forms.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('Forms.vue', () => {
1111
})
1212
it('is Forms', () => {
1313
const wrapper = shallowMount(Forms)
14-
expect(wrapper.is(Forms)).toBe(true)
14+
expect(wrapper.findComponent(Forms)).toBeTruthy()
1515
})
1616
// render random chackboxes
1717
// test('renders correctly', () => {

tests/unit/views/base/Jumbotrons.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ describe('Jumbotrons.vue', () => {
1111
})
1212
it('is Vue instance', () => {
1313
const wrapper = shallowMount(Jumbotrons)
14-
expect(wrapper.isVueInstance()).toBe(true)
14+
expect(wrapper.vm).toBeTruthy()
1515
})
1616
it('is Jumbotrons', () => {
1717
const wrapper = shallowMount(Jumbotrons)
18-
expect(wrapper.is(Jumbotrons)).toBe(true)
18+
expect(wrapper.findComponent(Jumbotrons)).toBeTruthy()
1919
})
2020
test('renders correctly', () => {
2121
const wrapper = shallowMount(Jumbotrons)

tests/unit/views/base/ListGroups.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ describe('ListGroups.vue', () => {
1111
})
1212
it('is Vue instance', () => {
1313
const wrapper = shallowMount(ListGroups)
14-
expect(wrapper.isVueInstance()).toBe(true)
14+
expect(wrapper.vm).toBeTruthy()
1515
})
1616
it('is ListGroups', () => {
1717
const wrapper = shallowMount(ListGroups)
18-
expect(wrapper.is(ListGroups)).toBe(true)
18+
expect(wrapper.findComponent(ListGroups)).toBeTruthy()
1919
})
2020
test('renders correctly', () => {
2121
const wrapper = shallowMount(ListGroups)

0 commit comments

Comments
 (0)