Skip to content

Commit 1f125b5

Browse files
committed
chore: run linter
1 parent 4617533 commit 1f125b5

File tree

4 files changed

+68
-92
lines changed

4 files changed

+68
-92
lines changed

package-lock.json

+54-81
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
:loader="{ thickness: 40, color: 'red' }"
5353
>
5454
<template v-slot:legend-caption>
55-
<p slot="legend-caption">TASKS DONE</p>
55+
<p id="slot-id" slot="legend-caption">TASKS DONE</p>
5656
</template>
5757
</ve-progress>
5858
</div>

tests/unit/container.spec.js

+12-10
Original file line numberDiff line numberDiff line change
@@ -108,39 +108,41 @@ describe("[ EllipseProgressContainer.vue ]", () => {
108108
expect(spanWrapper.classes()).to.include("applied-class");
109109
});
110110
});
111+
// FIXME: blocked by vue-test-utils v2 beta
111112
/* describe("#slots", () => {
112113
describe("#legend-value", () => {
113114
it("renders provided slot content", () => {
114115
const wrapper = mount(VueEllipseProgress, {
115116
props: { progress: 50 },
116117
slots: {
117-
"legend-value": '<span id="my-slot">Hello Circle</span>',
118+
legendValue: '<span id="my-slot">Hello Circle</span>',
118119
},
119120
});
120-
expect(wrapper.get("#my-slot"));
121+
const c = wrapper.vm.$slots;
122+
expect(wrapper.find("#my-slot").exists()).to.be.true;
121123
});
122124
});
123125
describe("#legend-caption", () => {
124126
it("renders provided slot content", () => {
125127
const wrapper = mount(VueEllipseProgress, {
126128
props: { progress: 50 },
127129
slots: {
128-
"legend-caption": '<span id="my-slot">Hello Circle</span>',
130+
"legend-caption": '<span id="my-caption-slot">Hello Circle</span>',
129131
},
130132
});
131-
expect(wrapper.get("#my-slot"));
133+
expect(wrapper.get("#my-caption-slot"));
132134
});
133135
});
134136
describe("#default", () => {
135-
const wrapper = factory(
136-
{ progress: 35, animation: "default 0 0" },
137-
{
138-
default: `
137+
const wrapper = mount(VueEllipseProgress, {
138+
props: { progress: 35, animation: "default 0 0" },
139+
slots: {
140+
scoped: `
139141
<template #default="counterParams" >
140142
<span class="my-formatter-slot">Formatted {{ counterParams.counterTick.currentValue }}</span>
141143
</template>`,
142-
}
143-
);
144+
},
145+
});
144146
145147
it("renders provided slot", () => {
146148
expect(wrapper.find(".my-formatter-slot").exists()).to.be.true;

vue.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
.use("vue-loader")
1111
.loader("vue-loader")
1212
.tap((options) => {
13+
// eslint-disable-next-line no-param-reassign
1314
options.isServerBuild = false;
1415
return options;
1516
});

0 commit comments

Comments
 (0)