Skip to content

Commit accbe61

Browse files
author
Arman
committed
geophystech#137 ExportDropDown.
1 parent 1e443bc commit accbe61

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

test/unit/specs/ExportDropDown.spec.js

+4-9
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ function createWrapper($http)
2020
}
2121

2222
return mount(ExportDropDown, {
23-
parentComponent: {
24-
name: 'EventHeader',
25-
template: `<div><ExportDropDown @export2xls="export2xls" /></div>`,
26-
methods: {
27-
export2xls(request) {
28-
request('url', {})
29-
}
30-
}
31-
},
3223
mocks: { $http, $store },
3324
attachToDocument: true,
3425
localVue
@@ -53,6 +44,10 @@ describe('ExportDropDown.vue', () => {
5344

5445
it('Request xls file url', async () => {
5546

47+
wrapper.vm.$on('export2xls', request => {
48+
request('url', {})
49+
})
50+
5651
wrapper.find('.dropdown-item').trigger('click')
5752

5853
flushPromises().then(() => {

0 commit comments

Comments
 (0)