@@ -29,12 +29,12 @@ describe("#line", () => {
29
29
expect ( circleProgressWrapper . element . getAttribute ( "stroke-linecap" ) ) . to . equal ( `${ line } ` ) ;
30
30
31
31
line = "butt" ;
32
- wrapper . setProps ( { line } ) ;
32
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , line } } ) ;
33
33
await Vue . nextTick ( ) ;
34
34
expect ( circleProgressWrapper . element . getAttribute ( "stroke-linecap" ) ) . to . equal ( `${ line } ` ) ;
35
35
36
36
line = "square" ;
37
- wrapper . setProps ( { line } ) ;
37
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , line } } ) ;
38
38
await Vue . nextTick ( ) ;
39
39
expect ( circleProgressWrapper . element . getAttribute ( "stroke-linecap" ) ) . to . equal ( `${ line } ` ) ;
40
40
} ) ;
@@ -71,7 +71,8 @@ describe("#lineMode", () => {
71
71
72
72
thickness = emptyThickness = 10 ;
73
73
74
- wrapper . setProps ( { thickness, emptyThickness } ) ;
74
+ await wrapper . setProps ( { options : { ...wrapper . props ( ) . options , thickness, emptyThickness } } ) ;
75
+
75
76
await Vue . nextTick ( ) ;
76
77
77
78
expectedProgressCircleRadius = baseRadius - thickness / 2 ;
@@ -80,7 +81,7 @@ describe("#lineMode", () => {
80
81
} ) ;
81
82
it ( "in case #thickness >= #emptyThickness and #lineMode.offset = 10" , async ( ) => {
82
83
// offset must be ignored in this mode
83
- wrapper . setProps ( { lineMode : "normal 10" } ) ;
84
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , lineMode : "normal 10" } } ) ;
84
85
await Vue . nextTick ( ) ;
85
86
86
87
let expectedProgressCircleRadius = baseRadius - thickness / 2 ;
@@ -89,7 +90,7 @@ describe("#lineMode", () => {
89
90
90
91
thickness = emptyThickness = 10 ;
91
92
92
- wrapper . setProps ( { thickness, emptyThickness } ) ;
93
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , thickness, emptyThickness } } ) ;
93
94
await Vue . nextTick ( ) ;
94
95
95
96
expectedProgressCircleRadius = baseRadius - thickness / 2 ;
@@ -100,7 +101,7 @@ describe("#lineMode", () => {
100
101
thickness = 10 ;
101
102
emptyThickness = 20 ;
102
103
103
- wrapper . setProps ( { thickness, emptyThickness } ) ;
104
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , thickness, emptyThickness } } ) ;
104
105
await Vue . nextTick ( ) ;
105
106
106
107
const expectedEmptyCircleRadius = baseRadius - emptyThickness / 2 ;
@@ -112,7 +113,9 @@ describe("#lineMode", () => {
112
113
thickness = 10 ;
113
114
emptyThickness = 20 ;
114
115
115
- wrapper . setProps ( { thickness, emptyThickness, lineMode : "normal 10" } ) ;
116
+ await wrapper . setProps ( {
117
+ options : { ...wrapper . props ( ) . options , thickness, emptyThickness, lineMode : "normal 10" } ,
118
+ } ) ;
116
119
await Vue . nextTick ( ) ;
117
120
118
121
const expectedEmptyCircleRadius = baseRadius - emptyThickness / 2 ;
@@ -188,7 +191,7 @@ describe("#lineMode", () => {
188
191
189
192
thickness = emptyThickness = 10 ;
190
193
191
- wrapper . setProps ( { thickness, emptyThickness } ) ;
194
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , thickness, emptyThickness } } ) ;
192
195
await Vue . nextTick ( ) ;
193
196
194
197
expectedProgressCircleRadius = baseRadius - thickness / 2 ;
@@ -199,7 +202,7 @@ describe("#lineMode", () => {
199
202
thickness = 10 ;
200
203
emptyThickness = 20 ;
201
204
202
- wrapper . setProps ( { thickness, emptyThickness } ) ;
205
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , thickness, emptyThickness } } ) ;
203
206
await Vue . nextTick ( ) ;
204
207
205
208
const expectedEmptyCircleRadius = baseRadius - emptyThickness / 2 ;
@@ -244,7 +247,7 @@ describe("#lineMode", () => {
244
247
thickness = 10 ;
245
248
emptyThickness = 20 ;
246
249
247
- wrapper . setProps ( { thickness, emptyThickness } ) ;
250
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , thickness, emptyThickness } } ) ;
248
251
await Vue . nextTick ( ) ;
249
252
250
253
let expectedEmptyCircleRadius = baseRadius - emptyThickness / 2 ;
@@ -253,7 +256,7 @@ describe("#lineMode", () => {
253
256
254
257
thickness = emptyThickness = 20 ;
255
258
256
- wrapper . setProps ( { thickness, emptyThickness } ) ;
259
+ await wrapper . setProps ( { options : { ... wrapper . props ( ) . options , thickness, emptyThickness } } ) ;
257
260
await Vue . nextTick ( ) ;
258
261
259
262
expectedEmptyCircleRadius = baseRadius - emptyThickness / 2 ;
0 commit comments