bootstrap-vue
Version:
BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.
22 lines (20 loc) • 422 B
JavaScript
const clickSpy = jest.fn()
const disabledClickSpy = jest.fn()
window.app = new Vue({
el: '#app',
data: {
href: 'https://bootstrap-vue.github.io/',
clickSpy,
disabledClickSpy,
testData: {}
},
methods: {
handleClick (e) {
clickSpy.apply(this, arguments)
},
handleDisabledClick (e) {
this.testData.disabled_event = e
disabledClickSpy.apply(this, arguments)
}
}
})