Update tests #223
Annotations
2 errors
Build and Test
Process completed with exit code 1.
|
packages/rehype-penrose/test/index.test.ts > renders diagram:
packages/rehype-penrose/test/index.test.ts#L22
Error: Snapshot `renders diagram 1` mismatched
Expected: "<figure class="beoe penrose"><svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800" penrose="0"><penrose><croppedviewbox>49 49 702 702</croppedviewbox></penrose><rect x="50" y="50" fill="#f3f4f9" fill-opacity="1" stroke="#8e93c4" stroke-opacity="1" stroke-width="2" rx="0" transform="rotate(0, 400, 400)"><title>`P`.icon</title></rect><g><marker id="rehype--`h`.icon-startArrowId" markerUnits="strokeWidth" markerWidth="6.47" markerHeight="5.28" viewBox="0 0 9.95 8.12" refX="2.36" refY="4.06" orient="auto-start-reverse"><path d="M9.95 4.06 0 8.12 2.36 4.06 0 0 9.95 4.06z" fill="#8c90c1" fill-opacity="1"></path></marker><line x1="390.6074062777447" y1="383.18410452241926" x2="460.2298039387911" y2="324.018477989569" stroke="#8c90c1" stroke-opacity="1" stroke-width="1.75" marker-start="url(#rehype--`h`.icon-startArrowId)"></line><title>`h`.icon</title></g><g transform="rotate(0, 433.8647001690237, 319.01179878516433)translate(418.4997001690237, 311.0842987851643)"><title>`m`.text</title><svg style="font-size: 35px" xmlns="http://www.w3.org/2000/svg" width="30.73" height="15.855" role="img" focusable="false" viewBox="0 -442 878 453"><g stroke="none" fill="#000000" stroke-width="0" transform="scale(1,-1)" fill-opacity="1"><g data-mml-node="math"><g data-mml-node="mi"><path data-c="1D45A" d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path></g></g></g></svg></g><g transform="rotate(0, 408.05960562982244, 473.4521451325203)translate(399.85210562982246, 465.54214513252026)"><title>`s`.text</title><svg style="font-size: 35px" xmlns="http://www.w3.org/2000/svg" width="16.415" height="15.82" role="img" focusable="false" viewBox="0 -442 469 452"><g stroke="none" fill="#000000" stroke-width="0" transform="scale(1,-1)" fill-opacity="1"><g data-mml-node="math"><g data-mml-node="mi"><path data-c="1D460" d="M131 289Q131 321 147 354T203 415T300 442Q362 442 390 415T419 355Q419 323 402 308T364 292Q351 292 340 300T328 326Q328 342 337 354T354 372T367 378Q368 378 368 379Q368 382 361 388T336 399T297 405Q249 405 227 379T204 326Q204 301 223 291T278 274T330 259Q396 230 396 163Q396 135 385 107T352 51T289 7T195 -10Q118 -10 86 19T53 87Q53 126 74 143T118 160Q133 160 146 151T160 120Q160 94 142 76T111 58Q109 57 108 57T107 55Q108 52 115 47T146 34T201 27Q237 27 263 38T301 66T318 97T323 122Q323 150 302 164T254 181T195 196T148 231Q131 256 131 289Z"></path></g></g></g></svg></g><g style="solid"><line x1="396.14235360994167" y1="248.6043864812894" x2="312.593309840658" y2="539.0268824143632" stroke="#000000" stroke-opacity="1" stroke-width="1.75"></line><title>`b`.icon</title></g><g><marker id="rehype--`w`.icon-endArrowId" markerUnits="strokeWidth" markerWidth="6.47" markerHeight="5.28" viewBox="0 0 9.95 8.12" refX="2.36" refY="4.06" orient="auto-start-reverse"><path d="M9.95 4.06 0 8.12 2.36 4.06 0 0 9.95 4.06z" fill="#8c90c1" fill-opacity="1"></path></marker><line x1="396.14235360994167" y1="248.6043864812894" x2="415.3789825990141" y2="337.92215017420295" stroke="#8c90c1" stroke-opacity="1" stroke-width="1.75" marker-end="url(#rehype--`w`.icon-endArrowId)"></line><title>`w`.icon</title></g><g><filter id="`theta`.mark-shadow" x="0" y="0" width="200%" heig
|