We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7745ee2 commit 6c3a449Copy full SHA for 6c3a449
index.test.js
@@ -0,0 +1,21 @@
1
+import Vue from 'vue/dist/vue';
2
+import { mount } from '@vue/test-utils';
3
+import { mixin as clickaway } from 'vue-clickaway';
4
+
5
+test('sanity test', () => {
6
+ var wrapper = new Vue({
7
+ mixins: [clickaway],
8
+ template: '<p v-on-clickaway="away">Click away</p>',
9
+ data: { foo: true },
10
+ methods: {
11
+ away() {
12
+ console.log('clicked away');
13
+ return 'boom';
14
+ }
15
16
+ }).$mount();
17
+ expect(wrapper.away()).toBe('boom');
18
+});
19
20
+// NOTES
21
+// - look up rollup
test/sum.js
test/sum.test.js
0 commit comments