Skip to content

Commit 6c3a449

Browse files
author
Dave Woodall
committed
Add sanity test
1 parent 7745ee2 commit 6c3a449

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

index.test.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/sum.test.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)