Added widget charts, chart extracted from widgets.

This commit is contained in:
woothu
2018-10-11 12:34:59 +02:00
parent 2023248ee2
commit 364c951ef2
26 changed files with 785 additions and 130 deletions
+4 -5
View File
@@ -16,10 +16,9 @@ describe(ComponentName + '.vue', () => {
expect(wrapper.isVueInstance()).toBe(true)
})
it('correctly sets default props and data when created', () => {
const vm = new Vue(Component).$mount()
expect(vm.rightHeader).toBe('rightHeader|string')
expect(vm.rightFooter).toBe('rightFooter|string')
expect(vm.leftHeader).toBe('leftHeader|string')
expect(vm.leftFooter).toBe('leftFooter|string')
expect(wrapper.props().rightHeader).toBe('rightHeader:string')
expect(wrapper.props().rightFooter).toBe('rightFooter:string')
expect(wrapper.props().leftHeader).toBe('leftHeader:string')
expect(wrapper.props().leftFooter).toBe('leftFooter:string')
})
})