@@ -55,14 +55,14 @@ const tiger = new SVGAsset(
55
55
800
56
56
) ;
57
57
58
- const text = new SVGAsset (
59
- `<svg viewBox='0 0 290 500' width='290' height='325' xmlns='http://www.w3.org/2000/svg'>
60
- <circle cx='31' cy='325' r='120px' fill='#c02aaa'/>
61
- <text x="20" y="35" fill="black">My Text</text>
62
- </svg>` ,
63
- 290 ,
64
- 500
65
- ) ;
58
+ // const text = new SVGAsset(
59
+ // `<svg viewBox='0 0 290 500' width='290' height='325' xmlns='http://www.w3.org/2000/svg'>
60
+ // <circle cx='31' cy='325' r='120px' fill='#c02aaa'/>
61
+ // <text x="20" y="35" fill="black">My Text</text>
62
+ // </svg>`,
63
+ // 290,
64
+ // 500
65
+ // );
66
66
67
67
const svgWithoutSize = {
68
68
__typename__ : "SVG" as const ,
@@ -205,13 +205,13 @@ describe("Displays SVGs", () => {
205
205
checkImage ( image , docPath ( "opacity-tiger.png" ) ) ;
206
206
} ) ;
207
207
208
- itRunsE2eOnly ( "can render text" , async ( ) => {
209
- const image = await surface . draw (
210
- < >
211
- < Fill color = "white" />
212
- < ImageSVG svg = { text } x = { 0 } y = { 0 } width = { 800 } height = { 800 } />
213
- </ >
214
- ) ;
215
- checkImage ( image , "snapshots/svg/text.png" ) ;
216
- } ) ;
208
+ // itRunsE2eOnly("can render text", async () => {
209
+ // const image = await surface.draw(
210
+ // <>
211
+ // <Fill color="white" />
212
+ // <ImageSVG svg={text} x={0} y={0} width={800} height={800} />
213
+ // </>
214
+ // );
215
+ // checkImage(image, "snapshots/svg/text.png");
216
+ // });
217
217
} ) ;
0 commit comments