Skip to content

Commit f59442a

Browse files
committed
test: adjust colors tests
1 parent b3e8d60 commit f59442a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/circle/circle-colors.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ const colorAsStringTests = (colorProp, color, selector, fill = false, half) => {
4545
const gradientColorTests = (colorProp, selector, gradientURLPrefix, fill = false, half) => {
4646
describe("applies gradient color correctly", () => {
4747
const wrapper = localFactory({ ...colorProp, half });
48+
const { uid } = wrapper.componentVM;
4849
const circleWrapper = wrapper.find(selector);
49-
const id = 0;
5050
const stopColorWrappers = wrapper.findAll("stop");
5151

5252
it("recognizes gradient colors", () => {
@@ -59,7 +59,7 @@ const gradientColorTests = (colorProp, selector, gradientURLPrefix, fill = false
5959
});
6060
it(`applies gradient URL to SVG ${fill ? "fill" : "stroke"}`, () => {
6161
expect(circleWrapper.element.getAttribute(`${fill ? "fill" : "stroke"}`)).to.equal(
62-
`url(#${gradientURLPrefix}-gradient-${id})`
62+
`url(#${gradientURLPrefix}-gradient-${uid})`
6363
);
6464
});
6565
it("renders corresponding amount of stop colors SVG elements", () => {

0 commit comments

Comments
 (0)