Skip to content

Commit

Permalink
test: update obsolete snap shot?
Browse files Browse the repository at this point in the history
  • Loading branch information
phatNfqAsia committed Jul 6, 2020
1 parent a0dd02c commit b67e20f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/unit/__snapshots__/transform.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,13 @@ export default Icon;
"
`;
exports[`transform tests doesn't rename any attributes 1`] = `
exports[`transform tests don't convert "clip-path" 1`] = `
"import React from \\"react\\";
function Icon() {
return (
<svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 30 10\\">
<circle id=\\"svg-test\\" cx=\\"5\\" cy=\\"5\\" r=\\"4\\" stroke=\\"#00f\\"></circle>
<use x=\\"20\\" fill=\\"#fff\\" stroke=\\"red\\" href=\\"#svg-test\\"></use>
<svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 45 45\\">
<path d=\\"M43 24c1.1-1.5 2.3-3\\" clip-path=\\"url(#SVGID_2_134rwd)\\"></path>
</svg>
);
}
Expand All @@ -166,26 +165,27 @@ export default Icon;
"
`;
exports[`transform tests don't convert "clip-path" 1`] = `
exports[`transform tests keep ID attribute 1`] = `
"import React from \\"react\\";
function Icon() {
return (
<svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 45 45\\">
<path d=\\"M43 24c1.1-1.5 2.3-3\\" clip-path=\\"url(#SVGID_2_134rwd)\\"></path>
</svg>
);
return <svg id=\\"svg-test\\"></svg>;
}
export default Icon;
"
`;
exports[`transform tests keep ID attribute 1`] = `
exports[`transform tests keep attribute values 1`] = `
"import React from \\"react\\";
function Icon() {
return <svg id=\\"svg-test\\"></svg>;
return (
<svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 30 10\\">
<circle id=\\"svg-test\\" cx=\\"5\\" cy=\\"5\\" r=\\"4\\" stroke=\\"#00f\\"></circle>
<use x=\\"20\\" fill=\\"#fff\\" stroke=\\"red\\" href=\\"#svg-test\\"></use>
</svg>
);
}
export default Icon;
Expand Down

0 comments on commit b67e20f

Please sign in to comment.