Skip to content

Commit d28aaf4

Browse files
committed
test: fix container tests
1 parent 4d3e8a1 commit d28aaf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/container.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import CircleContainer from "@/components/Circle/CircleContainer.vue";
55
import Counter from "@/components/Counter.vue";
66
import { animationParser, dotParser, dashParser, lineModeParser, linePositionParser } from "@/components/optionsParser";
77
import props from "@/components/interface";
8-
import { defaultCounterTick, wait } from "@/../tests/helper";
8+
import { defaultCounterTick, wait } from "../helper";
99
import { nextTick } from "vue";
1010

1111
const factory = (propsData, slots = {}) => {
@@ -137,7 +137,7 @@ describe("[ EllipseProgressContainer.vue ]", () => {
137137
const wrapper = mount(VueEllipseProgress, {
138138
props: { progress: 50 },
139139
slots: {
140-
legend: `<template #legend><span id="my-slot">Hello Circle</span></template>`,
140+
legend: `<span id="my-slot">Hello Circle</span>`,
141141
},
142142
});
143143
expect(wrapper.find("#my-slot").exists()).to.be.true;
@@ -179,11 +179,11 @@ describe("[ EllipseProgressContainer.vue ]", () => {
179179
props: { progress: 35 },
180180
slots: {
181181
"circle-progress": `
182-
<template #default="attrs" >
182+
<template #default="{ attrs }" >
183183
<polygon
184184
ref="polygon"
185185
:stroke-dashoffset="attrs.strokeDashOffset"
186-
:stroke-dasharray="582.4922485351562"
186+
:stroke-dasharray="attrs.circumference"
187187
points="10,10 190,100 10,190"
188188
style="fill: lime; stroke: purple; stroke-width: 3"
189189
:style="attrs.styles"

0 commit comments

Comments
 (0)