Skip to content

Commit af8f4df

Browse files
committed
fix: actually test if it overrides
1 parent 8757e07 commit af8f4df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/specs/wrapper/setMethods.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describeWithShallowAndMount('setMethods', (mountingMethod) => {
2727
// Replace the toggle function so that the data supposedly won't change
2828
const toggleActive = () => console.log('overriden')
2929
wrapper.setMethods({ toggleActive })
30+
wrapper.find('.toggle').trigger('click')
3031
expect(wrapper.vm.isActive).to.be.true
3132
})
3233
})

0 commit comments

Comments
 (0)