Skip to content

Commit

Permalink
test: fix container tests
Browse files Browse the repository at this point in the history
  • Loading branch information
setaman committed Sep 18, 2024
1 parent 4d3e8a1 commit d28aaf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/container.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import CircleContainer from "@/components/Circle/CircleContainer.vue";
import Counter from "@/components/Counter.vue";
import { animationParser, dotParser, dashParser, lineModeParser, linePositionParser } from "@/components/optionsParser";
import props from "@/components/interface";
import { defaultCounterTick, wait } from "@/../tests/helper";
import { defaultCounterTick, wait } from "../helper";
import { nextTick } from "vue";

const factory = (propsData, slots = {}) => {
Expand Down Expand Up @@ -137,7 +137,7 @@ describe("[ EllipseProgressContainer.vue ]", () => {
const wrapper = mount(VueEllipseProgress, {
props: { progress: 50 },
slots: {
legend: `<template #legend><span id="my-slot">Hello Circle</span></template>`,
legend: `<span id="my-slot">Hello Circle</span>`,
},
});
expect(wrapper.find("#my-slot").exists()).to.be.true;
Expand Down Expand Up @@ -179,11 +179,11 @@ describe("[ EllipseProgressContainer.vue ]", () => {
props: { progress: 35 },
slots: {
"circle-progress": `
<template #default="attrs" >
<template #default="{ attrs }" >
<polygon
ref="polygon"
:stroke-dashoffset="attrs.strokeDashOffset"
:stroke-dasharray="582.4922485351562"
:stroke-dasharray="attrs.circumference"
points="10,10 190,100 10,190"
style="fill: lime; stroke: purple; stroke-width: 3"
:style="attrs.styles"
Expand Down

0 comments on commit d28aaf4

Please sign in to comment.