UNPKG

bootstrap-vue

Version:

Quickly integrate Bootstrap 4 components with Vue.js

22 lines (20 loc) 486 B
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); }, } });