File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { mount , createLocalVue } from '@vue/test-utils'
2
2
import ExportDropDown from '@/components/ExportDropDown'
3
- import EventHeader from '@/components/event/Header'
4
3
import flushPromises from 'flush-promises'
5
4
import BootstrapVue from 'bootstrap-vue'
6
- import { EVENT_DATA } from '../utils'
7
5
8
6
const localVue = createLocalVue ( )
9
7
localVue . use ( BootstrapVue )
@@ -24,12 +22,11 @@ function createWrapper($http)
24
22
return mount ( ExportDropDown , {
25
23
parentComponent : {
26
24
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
+ }
33
30
}
34
31
} ,
35
32
mocks : { $http, $store } ,
You can’t perform that action at this time.
0 commit comments