🐛 Fix tests

This commit is contained in:
Jakub Juszczak
2016-12-20 18:26:49 +01:00
parent bb21a40506
commit 482048b746
7 changed files with 98 additions and 14 deletions

View File

@@ -10,7 +10,11 @@ describe('BarChart', () => {
it('should render a canvas', () => {
const vm = new Vue({
template: '<bar-chart></bar-chart>',
render: function (createElement) {
return createElement(
BarChart
)
},
components: { BarChart }
}).$mount(el)
@@ -22,7 +26,15 @@ describe('BarChart', () => {
it('should change id based on prop', () => {
const vm = new Vue({
template: '<bar-chart chartId="barchartprop"></bar-chart>',
render: function (createElement) {
return createElement(
BarChart, {
props: {
chartId: 'barchartprop'
}
}
)
},
components: { BarChart }
}).$mount(el)