2
0
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:
JVB
2018-01-12 11:25:09 -08:00
parent d49807b27e
commit 7276fcdc52
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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', ()=> {