mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-24 02:20:33 +03:00
I had mistakenly missed a function call.
This commit is contained in:
@@ -384,8 +384,8 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
let newTab = this.tabs[index]
|
let newTab = this.tabs[index]
|
||||||
if (newTab && newTab.afterTabChange !== undefined) {
|
if (newTab && newTab.afterChange !== undefined) {
|
||||||
newTab.afterTabChange()
|
newTab.afterChange()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeTab (oldIndex, newIndex, emitChangeEvent = true) {
|
changeTab (oldIndex, newIndex, emitChangeEvent = true) {
|
||||||
|
|||||||
@@ -417,7 +417,7 @@ describe('FormWizard.vue', () => {
|
|||||||
const wizard = mount(threeStepWizard, {localVue})
|
const wizard = mount(threeStepWizard, {localVue})
|
||||||
const wizardInstance = wizard.find(FormWizard)
|
const wizardInstance = wizard.find(FormWizard)
|
||||||
wizardInstance.vm.nextTab()
|
wizardInstance.vm.nextTab()
|
||||||
expect(threeStepWizard.methods.validationMethod).to.have.been.called()
|
expect(threeStepWizard.methods.validationMethod.should.have.been.called)
|
||||||
expect(wizardInstance.vm.activeTabIndex).to.equal(1)
|
expect(wizardInstance.vm.activeTabIndex).to.equal(1)
|
||||||
})
|
})
|
||||||
it('simple method on back navigation after change', () => {
|
it('simple method on back navigation after change', () => {
|
||||||
@@ -427,7 +427,7 @@ describe('FormWizard.vue', () => {
|
|||||||
const wizardInstance = wizard.find(FormWizard)
|
const wizardInstance = wizard.find(FormWizard)
|
||||||
wizardInstance.vm.nextTab()
|
wizardInstance.vm.nextTab()
|
||||||
wizardInstance.vm.prevTab()
|
wizardInstance.vm.prevTab()
|
||||||
expect(threeStepWizard.methods.validationMethod.called)
|
expect(threeStepWizard.methods.validationMethod.should.have.been.called)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
describe('with vue-router', ()=> {
|
describe('with vue-router', ()=> {
|
||||||
|
|||||||
Reference in New Issue
Block a user