Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
I had mistakenly missed a function call.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvb93 committed Jan 12, 2018
1 parent d49807b commit 7276fcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/FormWizard.vue
Expand Up @@ -384,8 +384,8 @@
return
}
let newTab = this.tabs[index]
if (newTab && newTab.afterTabChange !== undefined) {
newTab.afterTabChange()
if (newTab && newTab.afterChange !== undefined) {
newTab.afterChange()
}
},
changeTab (oldIndex, newIndex, emitChangeEvent = true) {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/specs/FormWizard.spec.js
Expand Up @@ -417,7 +417,7 @@ describe('FormWizard.vue', () => {
const wizard = mount(threeStepWizard, {localVue})
const wizardInstance = wizard.find(FormWizard)
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)
})
it('simple method on back navigation after change', () => {
Expand All @@ -427,7 +427,7 @@ describe('FormWizard.vue', () => {
const wizardInstance = wizard.find(FormWizard)
wizardInstance.vm.nextTab()
wizardInstance.vm.prevTab()
expect(threeStepWizard.methods.validationMethod.called)
expect(threeStepWizard.methods.validationMethod.should.have.been.called)
})
})
describe('with vue-router', ()=> {
Expand Down

0 comments on commit 7276fcd

Please sign in to comment.