@@ -5,7 +5,7 @@ import CircleContainer from "@/components/Circle/CircleContainer.vue";
5
5
import Counter from "@/components/Counter.vue" ;
6
6
import { animationParser , dotParser , dashParser , lineModeParser , linePositionParser } from "@/components/optionsParser" ;
7
7
import props from "@/components/interface" ;
8
- import { defaultCounterTick , wait } from "@/../tests /helper" ;
8
+ import { defaultCounterTick , wait } from ".. /helper" ;
9
9
import { nextTick } from "vue" ;
10
10
11
11
const factory = ( propsData , slots = { } ) => {
@@ -137,7 +137,7 @@ describe("[ EllipseProgressContainer.vue ]", () => {
137
137
const wrapper = mount ( VueEllipseProgress , {
138
138
props : { progress : 50 } ,
139
139
slots : {
140
- legend : `<template #legend>< span id="my-slot">Hello Circle</span></template >` ,
140
+ legend : `<span id="my-slot">Hello Circle</span>` ,
141
141
} ,
142
142
} ) ;
143
143
expect ( wrapper . find ( "#my-slot" ) . exists ( ) ) . to . be . true ;
@@ -179,11 +179,11 @@ describe("[ EllipseProgressContainer.vue ]", () => {
179
179
props : { progress : 35 } ,
180
180
slots : {
181
181
"circle-progress" : `
182
- <template #default="attrs" >
182
+ <template #default="{ attrs } " >
183
183
<polygon
184
184
ref="polygon"
185
185
:stroke-dashoffset="attrs.strokeDashOffset"
186
- :stroke-dasharray="582.4922485351562 "
186
+ :stroke-dasharray="attrs.circumference "
187
187
points="10,10 190,100 10,190"
188
188
style="fill: lime; stroke: purple; stroke-width: 3"
189
189
:style="attrs.styles"
0 commit comments