test: fix DOM tests #222
Annotations
25 errors
error: expect(received).toStartWith(expected):
packages/nuemark/test/nuemark.test.js#L10
Expected to start with: "<pre glow class=\"foo\">"
Received: "<pre class=\"foo\"><code language=\"md\"><i><</i><strong>h1</strong><i>></i>hey<i><</i><i>/</i><strong>h1</strong><i>></i></code></pre>\n<p>after</p>\n"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:10:16
|
error: expect(received).toStartWith(expected):
packages/nuemark/test/nuemark.test.js#L17
Expected to start with: "<div class=\"foo\"><pre glow><code language=\"xml\">"
Received: "<div class=\"foo\"><pre><code language=\"xml\"><span><i><</i>p<i>></i>Hey<i><</i><i>/</i>p<i>></i></span></code></pre></div>"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:17:16
|
error: expect(received).toInclude(expected):
packages/nuemark/test/nuemark.test.js#L23
Expected to include: "<figcaption><h3>index.js"
Received: "<div class=\"shiny\"><figure><figcaption>index.js</figcaption><pre><code language=\"html\"><span><sup><!-- Hey --></sup></span></code></pre></figure></div>"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:23:16
|
error: expect(received).toStartWith(expected):
packages/nuemark/test/nuemark.test.js#L29
Expected to start with: "<section><figure class=\"foo\">"
Received: "<div><figure class=\"foo\"><figcaption>A</figcaption><pre><code language=\"*\">a</code></pre></figure>\n<figure class=\"bar\"><figcaption>B</figcaption><pre><code language=\"*\">b</code></pre></figure></div>"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:29:16
|
error: expect(received).toStartWith(expected):
packages/nuemark/test/nuemark.test.js#L36
Expected to start with: "<section tabs is=\"aria-tabs\">"
Received: "<div tabs is=\"aria-tabs\"><div role=\"tablist\"><a role=\"tab\" aria-selected>A</a>\n<a role=\"tab\">B</a></div><ul><li role=\"tabpanel\"><pre><code language=\"jsx\">a</code></pre></li>\n<li role=\"tabpanel\" hidden=\"hidden\"><pre><code language=\"md\">b</code></pre></li></ul></div>"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:36:16
|
TypeError: tags.icon is not a function. (In 'tags.icon(data)':
packages/nuemark/src/tags.js#L224
at /home/runner/work/nue/nue/packages/nuemark/src/tags.js:224:36
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:58:21
|
error: expect(received).toInclude(expected):
packages/nuemark/test/nuemark.test.js#L81
Expected to include: "<section tabs is=\"aria-tabs\" class=\"tabs\">"
Received: "<div tabs is=\"aria-tabs\" class=\"tabs\"><div role=\"tablist\"><a role=\"tab\" aria-selected>t1</a>\n<a role=\"tab\">t2</a></div><ul><li role=\"tabpanel\"><p>c1</p>\n</li>\n<li role=\"tabpanel\" hidden=\"hidden\"><p>c2</p>\n</li></ul></div>"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:81:16
|
error: expect(received).toInclude(expected):
packages/nuemark/test/nuemark.test.js#L134
Expected to include: "img src=\"a.png"
Received: "<figure><img loading=\"lazy\" src=\"a.png\"><figcaption><p>Hey</p>\n</figcaption></figure>"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:134:16
|
error: expect(received).toBe(expected):
packages/nuemark/test/nuemark.test.js#L140
Expected: "<a href=\"/\"><img src=\"a.png\" loading=\"lazy\"></a>"
Received: "<a href=\"/\"><img loading=\"lazy\" src=\"a.png\"></a>"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:140:13
|
error: expect(received).toInclude(expected):
packages/nuemark/test/nuemark.test.js#L148
Expected to include: "img src=\"b.png\""
Received: "<picture><source srcset=\"a.png\" media=\"(max-width: 800px)\" type=\"image/png\">\n<source srcset=\"b.png\" media=\"(min-width: 800px)\" type=\"image/png\">\n<img loading=\"lazy\" src=\"b.png\" class=\"big\"></picture>"
at /home/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:148:15
|
test (windows-2022, node+jest)
The job was canceled because "ubuntu-22_04_bun" failed.
|
test (windows-2022, node+jest)
The operation was canceled.
|
test (macos-12, bun)
The job was canceled because "ubuntu-22_04_bun" failed.
|
error: expect(received).toStartWith(expected):
packages/nuemark/test/nuemark.test.js#L10
Expected to start with: "<pre glow class=\"foo\">"
Received: "<pre class=\"foo\"><code language=\"md\"><i><</i><strong>h1</strong><i>></i>hey<i><</i><i>/</i><strong>h1</strong><i>></i></code></pre>\n<p>after</p>\n"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:10:16
|
error: expect(received).toStartWith(expected):
packages/nuemark/test/nuemark.test.js#L17
Expected to start with: "<div class=\"foo\"><pre glow><code language=\"xml\">"
Received: "<div class=\"foo\"><pre><code language=\"xml\"><span><i><</i>p<i>></i>Hey<i><</i><i>/</i>p<i>></i></span></code></pre></div>"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:17:16
|
error: expect(received).toInclude(expected):
packages/nuemark/test/nuemark.test.js#L23
Expected to include: "<figcaption><h3>index.js"
Received: "<div class=\"shiny\"><figure><figcaption>index.js</figcaption><pre><code language=\"html\"><span><sup><!-- Hey --></sup></span></code></pre></figure></div>"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:23:16
|
error: expect(received).toStartWith(expected):
packages/nuemark/test/nuemark.test.js#L29
Expected to start with: "<section><figure class=\"foo\">"
Received: "<div><figure class=\"foo\"><figcaption>A</figcaption><pre><code language=\"*\">a</code></pre></figure>\n<figure class=\"bar\"><figcaption>B</figcaption><pre><code language=\"*\">b</code></pre></figure></div>"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:29:16
|
error: expect(received).toStartWith(expected):
packages/nuemark/test/nuemark.test.js#L36
Expected to start with: "<section tabs is=\"aria-tabs\">"
Received: "<div tabs is=\"aria-tabs\"><div role=\"tablist\"><a role=\"tab\" aria-selected>A</a>\n<a role=\"tab\">B</a></div><ul><li role=\"tabpanel\"><pre><code language=\"jsx\">a</code></pre></li>\n<li role=\"tabpanel\" hidden=\"hidden\"><pre><code language=\"md\">b</code></pre></li></ul></div>"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:36:16
|
TypeError: tags.icon is not a function. (In 'tags.icon(data)':
packages/nuemark/src/tags.js#L224
at /Users/runner/work/nue/nue/packages/nuemark/src/tags.js:224:36
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:58:21
|
error: expect(received).toInclude(expected):
packages/nuemark/test/nuemark.test.js#L81
Expected to include: "<section tabs is=\"aria-tabs\" class=\"tabs\">"
Received: "<div tabs is=\"aria-tabs\" class=\"tabs\"><div role=\"tablist\"><a role=\"tab\" aria-selected>t1</a>\n<a role=\"tab\">t2</a></div><ul><li role=\"tabpanel\"><p>c1</p>\n</li>\n<li role=\"tabpanel\" hidden=\"hidden\"><p>c2</p>\n</li></ul></div>"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:81:16
|
error: expect(received).toInclude(expected):
packages/nuemark/test/nuemark.test.js#L134
Expected to include: "img src=\"a.png"
Received: "<figure><img loading=\"lazy\" src=\"a.png\"><figcaption><p>Hey</p>\n</figcaption></figure>"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:134:16
|
error: expect(received).toBe(expected):
packages/nuemark/test/nuemark.test.js#L140
Expected: "<a href=\"/\"><img src=\"a.png\" loading=\"lazy\"></a>"
Received: "<a href=\"/\"><img loading=\"lazy\" src=\"a.png\"></a>"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:140:13
|
error: expect(received).toInclude(expected):
packages/nuemark/test/nuemark.test.js#L148
Expected to include: "img src=\"b.png\""
Received: "<picture><source srcset=\"a.png\" media=\"(max-width: 800px)\" type=\"image/png\">\n<source srcset=\"b.png\" media=\"(min-width: 800px)\" type=\"image/png\">\n<img loading=\"lazy\" src=\"b.png\" class=\"big\"></picture>"
at /Users/runner/work/nue/nue/packages/nuemark/test/nuemark.test.js:148:15
|
test (windows-2022, bun)
The job was canceled because "ubuntu-22_04_bun" failed.
|
test (windows-2022, bun)
The operation was canceled.
|