File tree Expand file tree Collapse file tree 7 files changed +98
-14
lines changed Expand file tree Collapse file tree 7 files changed +98
-14
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ describe('BarChart', () => {
10
10
11
11
it ( 'should render a canvas' , ( ) => {
12
12
const vm = new Vue ( {
13
- template : '<bar-chart></bar-chart>' ,
13
+ render : function ( createElement ) {
14
+ return createElement (
15
+ BarChart
16
+ )
17
+ } ,
14
18
components : { BarChart }
15
19
} ) . $mount ( el )
16
20
@@ -22,7 +26,15 @@ describe('BarChart', () => {
22
26
23
27
it ( 'should change id based on prop' , ( ) => {
24
28
const vm = new Vue ( {
25
- template : '<bar-chart chartId="barchartprop"></bar-chart>' ,
29
+ render : function ( createElement ) {
30
+ return createElement (
31
+ BarChart , {
32
+ props : {
33
+ chartId : 'barchartprop'
34
+ }
35
+ }
36
+ )
37
+ } ,
26
38
components : { BarChart }
27
39
} ) . $mount ( el )
28
40
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ describe('BubbleChart', () => {
10
10
11
11
it ( 'should render a canvas' , ( ) => {
12
12
const vm = new Vue ( {
13
- template : '<bubble-chart></bubble-chart>' ,
13
+ render : function ( createElement ) {
14
+ return createElement (
15
+ BubbleChart
16
+ )
17
+ } ,
14
18
components : { BubbleChart }
15
19
} ) . $mount ( el )
16
20
@@ -22,7 +26,15 @@ describe('BubbleChart', () => {
22
26
23
27
it ( 'should change id based on prop' , ( ) => {
24
28
const vm = new Vue ( {
25
- template : '<bubble-chart chartId="bubblechartprop"></bubble-chart>' ,
29
+ render : function ( createElement ) {
30
+ return createElement (
31
+ BubbleChart , {
32
+ props : {
33
+ chartId : 'bubblechartprop'
34
+ }
35
+ }
36
+ )
37
+ } ,
26
38
components : { BubbleChart }
27
39
} ) . $mount ( el )
28
40
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ describe('DoughnutChart', () => {
10
10
11
11
it ( 'should render a canvas' , ( ) => {
12
12
const vm = new Vue ( {
13
- template : '<doughnut-chart></doughnut-chart>' ,
13
+ render : function ( createElement ) {
14
+ return createElement (
15
+ DoughnutChart
16
+ )
17
+ } ,
14
18
components : { DoughnutChart }
15
19
} ) . $mount ( el )
16
20
@@ -22,7 +26,15 @@ describe('DoughnutChart', () => {
22
26
23
27
it ( 'should change id based on prop' , ( ) => {
24
28
const vm = new Vue ( {
25
- template : '<doughnut-chart chartId="doughnutchartprop"></doughnut-chart>' ,
29
+ render : function ( createElement ) {
30
+ return createElement (
31
+ DoughnutChart , {
32
+ props : {
33
+ chartId : 'doughnutchartprop'
34
+ }
35
+ }
36
+ )
37
+ } ,
26
38
components : { DoughnutChart }
27
39
} ) . $mount ( el )
28
40
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ describe('LineChart', () => {
10
10
11
11
it ( 'should render a canvas' , ( ) => {
12
12
const vm = new Vue ( {
13
- template : '<line-chart></line-chart>' ,
13
+ render : function ( createElement ) {
14
+ return createElement (
15
+ LineChart
16
+ )
17
+ } ,
14
18
components : { LineChart }
15
19
} ) . $mount ( el )
16
20
@@ -22,7 +26,15 @@ describe('LineChart', () => {
22
26
23
27
it ( 'should change id based on prop' , ( ) => {
24
28
const vm = new Vue ( {
25
- template : '<line-chart chartId="linechartprop"></line-chart>' ,
29
+ render : function ( createElement ) {
30
+ return createElement (
31
+ LineChart , {
32
+ props : {
33
+ chartId : 'linechartprop'
34
+ }
35
+ }
36
+ )
37
+ } ,
26
38
components : { LineChart }
27
39
} ) . $mount ( el )
28
40
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ describe('PieChart', () => {
10
10
11
11
it ( 'should render a canvas' , ( ) => {
12
12
const vm = new Vue ( {
13
- template : '<pie-chart></pie-chart>' ,
13
+ render : function ( createElement ) {
14
+ return createElement (
15
+ PieChart
16
+ )
17
+ } ,
14
18
components : { PieChart }
15
19
} ) . $mount ( el )
16
20
@@ -22,7 +26,15 @@ describe('PieChart', () => {
22
26
23
27
it ( 'should change id based on prop' , ( ) => {
24
28
const vm = new Vue ( {
25
- template : '<pie-chart chartId="piechartprop"></pie-chart>' ,
29
+ render : function ( createElement ) {
30
+ return createElement (
31
+ PieChart , {
32
+ props : {
33
+ chartId : 'piechartprop'
34
+ }
35
+ }
36
+ )
37
+ } ,
26
38
components : { PieChart }
27
39
} ) . $mount ( el )
28
40
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ describe('PolarChart', () => {
10
10
11
11
it ( 'should render a canvas' , ( ) => {
12
12
const vm = new Vue ( {
13
- template : '<polar-chart></polar-chart>' ,
13
+ render : function ( createElement ) {
14
+ return createElement (
15
+ PolarChart
16
+ )
17
+ } ,
14
18
components : { PolarChart }
15
19
} ) . $mount ( el )
16
20
@@ -22,7 +26,15 @@ describe('PolarChart', () => {
22
26
23
27
it ( 'should change id based on prop' , ( ) => {
24
28
const vm = new Vue ( {
25
- template : '<polar-chart chartId="polarchartprop"></polar-chart>' ,
29
+ render : function ( createElement ) {
30
+ return createElement (
31
+ PolarChart , {
32
+ props : {
33
+ chartId : 'polarchartprop'
34
+ }
35
+ }
36
+ )
37
+ } ,
26
38
components : { PolarChart }
27
39
} ) . $mount ( el )
28
40
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ describe('RadarChart', () => {
10
10
11
11
it ( 'should render a canvas' , ( ) => {
12
12
const vm = new Vue ( {
13
- template : '<radar-chart></radar-chart>' ,
13
+ render : function ( createElement ) {
14
+ return createElement (
15
+ RadarChart
16
+ )
17
+ } ,
14
18
components : { RadarChart }
15
19
} ) . $mount ( el )
16
20
@@ -22,7 +26,15 @@ describe('RadarChart', () => {
22
26
23
27
it ( 'should change id based on prop' , ( ) => {
24
28
const vm = new Vue ( {
25
- template : '<radar-chart chartId="rodarchartprop"></radar-chart>' ,
29
+ render : function ( createElement ) {
30
+ return createElement (
31
+ RadarChart , {
32
+ props : {
33
+ chartId : 'rodarchartprop'
34
+ }
35
+ }
36
+ )
37
+ } ,
26
38
components : { RadarChart }
27
39
} ) . $mount ( el )
28
40
You canβt perform that action at this time.
0 commit comments