Skip to content

Commit 1e443bc

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

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

test/unit/specs/ExportDropDown.spec.js

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { mount, createLocalVue } from '@vue/test-utils'
22
import ExportDropDown from '@/components/ExportDropDown'
3-
import EventHeader from '@/components/event/Header'
43
import flushPromises from 'flush-promises'
54
import BootstrapVue from 'bootstrap-vue'
6-
import {EVENT_DATA} from '../utils'
75

86
const localVue = createLocalVue()
97
localVue.use(BootstrapVue)
@@ -24,12 +22,11 @@ function createWrapper($http)
2422
return mount(ExportDropDown, {
2523
parentComponent: {
2624
name: 'EventHeader',
27-
render(createElement, context) {
28-
return createElement(EventHeader, {
29-
props: {
30-
event: EVENT_DATA
31-
}
32-
})
25+
template: `<div><ExportDropDown @export2xls="export2xls" /></div>`,
26+
methods: {
27+
export2xls(request) {
28+
request('url', {})
29+
}
3330
}
3431
},
3532
mocks: { $http, $store },

0 commit comments

Comments
 (0)