fix: 不要なinclude要素とiframeを削除 #40
Annotations
10 errors
|
error: expect(received).toEqual(expected):
tests/integration/fixture-parser.test.ts#L128
{
"elements": [
{
"data": {
"attributes": {},
"button-text": null,
"module": "join",
},
"element": "module",
},
{
"data": {
"attributes": {},
"button-text": null,
"module": "join",
},
"element": "module",
},
{
"data": {
"attributes": {},
"elements": [
{
- "data": "[[ module JOIN button="Join our site!! ;-)"]]",
+ "data": "[[",
+ "element": "text",
+ },
+ {
+ "data": " ",
+ "element": "text",
+ },
+ {
+ "data": "module",
+ "element": "text",
+ },
+ {
+ "data": " ",
+ "element": "text",
+ },
+ {
+ "data": "JOIN",
+ "element": "text",
+ },
+ {
+ "data": " ",
+ "element": "text",
+ },
+ {
+ "data": "button",
+ "element": "text",
+ },
+ {
+ "data": "=",
+ "element": "text",
+ },
+ {
+ "data": ""Join our site!! ;-)"",
+ "element": "text",
+ },
+ {
+ "data": "]]",
"element": "text",
},
],
"type": "paragraph",
},
"element": "container",
},
{
"data": {
"attributes": {
"class": "join-module",
+ "id": "join-btn",
+ "style": "display: flex",
},
"button-text": null,
"module": "join",
},
"element": "module",
},
{
"data": {
"hide": false,
"title": null,
},
"element": "footnote-block",
},
],
}
- Expected - 1
+ Received + 39
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-parser.test.ts:128:24)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "<p>User normal: <span class="printuser"><a href="http://www.wikidot.com/user:info/alice">Alice</a></span><br />User with star: <span class="printuser avatarhover"><a href="http://www.wikidot.com/user:info/bob"><img alt="Bob" class="small" src="http://www.wikidot.com/avatar.php?userid=9318&size=small&timestamp=1769416030" style="background-image:url(http://www.wikidot.com/userkarma.php?u=9318)" /></a><a href="http://www.wikidot.com/user:info/bob">Bob</a></span></p><p>Weird: <span class="printuser"><a href="http://www.wikidot.com/user:info/system">system</a></span></p><p>Special: Anonymous</p>"
Received: "<p>User normal: Alice<br />User with star: Bob</p><p>Weird: SYSTEM</p><p>Special: anonymous</p>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "<p>[[table]] [[cell]] Also no row [<a href="/cell]]">[[/table</a>]</p><p>EMPTY TABLE<br />[[table]]<br />[[/table]]</p><p>EMPTY ROW<br />[[table]]<br />[[row]]<br />[[/row]]<br />[[/table]]</p>"
Received: "<p>[[table]] [[cell]] Also no row [[/cell]] [[/table]]</p><p>EMPTY TABLE</p><p>[[table]]</p><p>[[/table]]</p><p>EMPTY ROW</p><p>[[table]]</p><p>[[row]]</p><p>[[/row]]</p><p>[[/table]]</p>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "<p>FLOAT JUSTIFY [[f==image landscape.jpg]]</p><p>JUSTIFY [[==image landscape.jpg]]</p><p>OTHER [[*$image landscape.jpg]]</p><p>EMPTY [[image]]</p><p>UNCLOSED [[image landscape.jpg</p>"
Received: "<p>FLOAT CENTER <div class="image-container floatcenter"><img alt="landscape.jpg" class="image" src="/local--files/some-page/landscape.jpg" /></div><br />FLOAT JUSTIFY [[f==image landscape.jpg]]</p><p>JUSTIFY [[==image landscape.jpg]]</p><p>OTHER [[*$image landscape.jpg]]</p><p>EMPTY [[image]]</p><p>UNCLOSED [[image landscape.jpg</p>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "BASIC <img alt="filename.png" class="image" src="/local--files/some-page/filename.png" /><p>LEFT</p><div class="image-container alignleft"><img alt="filename.png" class="image" src="/local--files/some-page/filename.png" /></div><p>RIGHT</p><div class="image-container alignright"><img alt="filename.png" class="image" src="/local--files/some-page/filename.png" /></div><p>CENTER</p><div class="image-container aligncenter"><img alt="filename.png" class="image" src="/local--files/some-page/filename.png" /></div><p>FLOAT LEFT</p><div class="image-container floatleft"><img alt="landscape.jpg" class="image" src="/local--files/some-page/landscape.jpg" /></div><p>FLOAT RIGHT</p><div class="image-container floatright"><img alt="landscape.jpg" class="image" src="/local--files/some-page/landscape.jpg" /></div>EXTERNAL <img alt="some-image.webp" class="image" src="https://example.com/some-image.webp" /><br />FILE_1 <img alt="my-picture.png" class="image" src="/local--files/my-picture.png" /><br />FILE_2 <img alt="my-picture.png" class="image" src="/local--files/some-other-page/my-picture.png" /><br />FILE_2 <img alt="my-picture.png" class="image" src="/local--files/some-other-page/my-picture.png" /><br />FILE_3 <img alt="my-picture.png" class="image" src="/local--files/scp-wiki/some-other-page/my-picture.png" /><br />FILE_3 <img alt="my-picture.png" class="image" src="/local--files/scp-wiki/some-other-page/my-picture.png" />ATTRS <img alt="A foobar made of gold" class="animated" src="/local--files/some-page/foo.gif" style="border: 1em solid" title="FOO" />LINK <a href="#gif-sucks"><img alt="foo.gif" class="image" src="/local--files/some-page/foo.gif" /></a><br />LINK <a href="/some-page"><img alt="foo.gif" class="image" src="/local--files/some-page/foo.gif" /></a><br />LINK <a href="https://example.com/"><img alt="foo.gif" class="image" src="/local--files/some-page/foo.gif" /></a>"
Received: "<p>BASIC <img alt="filename.png" class="image" src="/local--files/some-page/filename.png" /></p><p>LEFT <div class="image-container alignleft"><img alt="filename.png" class="image" src="/local--files/some-page/filename.png" /></div><br />RIGHT <div class="image-container alignright"><img alt="filename.png" class="image" src="/local--files/some-page/filename.png" /></div><br />CENTER <div class="image-container aligncenter"><img alt="filename.png" class="image" src="/local--files/some-page/filename.png" /></div></p><p>FLOAT LEFT <div class="image-container floatleft"><img alt="landscape.jpg" class="image" src="/local--files/some-page/landscape.jpg" /></div><br />FLOAT RIGHT <div class="image-container floatright"><img alt="landscape.jpg" class="image" src="/local--files/some-page/landscape.jpg" /></div></p><p>EXTERNAL <img alt="some-image.webp" class="image" src="https://example.com/some-image.webp" /><br />FILE_1 <img alt="my-picture.png" class="image" src="/local--files/my-picture.png" /><br />FILE_2 <img alt="my-picture.png" class="image" src="/local--files/some-other-page/my-picture.png" /><br />FILE_2 <img alt="my-picture.png" class="image" src="/local--files/some-other-page/my-picture.png" /><br />FILE_3 <img alt="my-picture.png" class="image" src="/local--files/scp-wiki/some-other-page/my-picture.png" /><br />FILE_3 <img alt="some-other-page/my-picture.png" class="image" src="/local--files/scp-wiki/some-other-page/my-picture.png" /></p><p>ATTRS <img alt="A foobar made of gold" class="animated" src="/local--files/some-page/foo.gif" style="border: 1em solid" title="FOO" /></p><p>LINK <a href="#gif-sucks"><img alt="foo.gif" class="image" src="/local--files/some-page/foo.gif" /></a><br />LINK <a href="/some-page"><img alt="foo.gif" class="image" src="/local--files/some-page/foo.gif" /></a><br />LINK <a href="https://example.com/"><img alt="foo.gif" class="image" src="/local--files/some-page/foo.gif" /></a></p>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "<p>Strawberry <span class="math-inline">$e^x - \\pi$</span></p><p>Apple <span class="math-inline">$a^2$</span> Banana <span class="math-inline">$b^3$</span> Cherry <span class="math-inline">$c^4$</span> Pineapple</p><p><strong>FAIL</strong></p><p>NEWLINES<br />[[$ E =</p><p>mc^2 $]]</p><p>SYNTAX<br /><span class="math-inline">$2^{\\pi - 1$</span></p>"
Received: "<p>Strawberry <span class="math-inline">$e^x - \\pi$</span></p><p>Apple <span class="math-inline">$a^2$</span> Banana <span class="math-inline">$b^3$</span> Cherry <span class="math-inline">$c^4$</span> Pineapple</p><p><strong>FAIL</strong></p><p>NEWLINES</p><p>[[$ E =</p><p>mc^2 $]]</p><p>SYNTAX</p><p><span class="math-inline">$2^{\\pi - 1$</span></p>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "<p><strong>FAIL</strong></p><p>NEWLINES<br />[[$ E =</p><p>mc^2 $]]</p><p>SYNTAX<br /><span class="math-inline">$2^{\\pi - 1$</span></p>"
Received: "<p><strong>FAIL</strong></p><p>NEWLINES</p><p>[[$ E =</p><p>mc^2 $]]</p><p>SYNTAX</p><p><span class="math-inline">$2^{\\pi - 1$</span></p>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "<span class="equation-number">(1)</span><div class="math-equation" id="equation-1">\begin{align} A = \pi \cdot r^2 [[/math]] [[math]] C = 2\pi r \end{align}</div><p>Apple<a class="eref" href="javascript:;"></a></p><p>Banana cherry[[equation quadratic-formula]] Gooseberry</p><p>Pineapple<a class="eref" href="javascript:;"></a>Blueberry</p>"
Received: "<div class="math-equation" id="equation-1">A = \pi \cdot r^2</div><div class="math-equation" id="equation-2">C = 2\pi r</div><p>Apple<a class="equation-ref" href="#equation-quadratic-formula">quadratic-formula</a></p><p>Banana cherry[[equation quadratic-formula]] Gooseberry</p><p>Pineapple<a class="equation-ref" href="#equation-navier-stokes">navier-stokes</a>Blueberry</p>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "<p><strong>FAIL</strong></p><p>EMPTY</p><span class="equation-number">(1)</span><div class="math-equation" id="equation-1">\begin{equation} \end{equation}</div>"
Received: "<p><strong>FAIL</strong></p><p>EMPTY</p><p>[[math]]</p><p>[[/math]]</p>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|
|
error: expect(received).toBe(expected):
tests/integration/fixture-render.test.ts#L151
Expected: "<div><h3>_default</h3><a href="javascript:;" id="category-pages-toggler-42041109">+ list pages</a><... (20442 bytes truncated) ...="display: none"></div><div id="category-pages-42423865-options" style="display: none"></div></div>"
Received: "<div class="categories-module-box"></div><div class="categories-module-box"></div><div class="categories-module-box"></div><div class="categories-module-box"></div>"
at <anonymous> (/home/runner/work/wdpr/wdpr/tests/integration/fixture-render.test.ts:151:41)
|