Add HTML content transformer middleware #1197
Annotations
10 errors
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L25
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
- <p>Same line.
+ <p xmlns="http://www.w3.org/1999/xhtml">Same line.
Same line.<br />
2nd line.</p>
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:25:104)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L33
expect(received).toBe(expected) // Object.is equality
- Expected - 3
+ Received + 3
- <p>Same Line.
- Same Line.</p>
- <p>2nd line.</p>
+ <p xmlns="http://www.w3.org/1999/xhtml">Same Line.
+ Same Line.</p>
+ <p xmlns="http://www.w3.org/1999/xhtml">2nd line.</p>
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:33:106)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L41
expect(received).toBe(expected) // Object.is equality
- Expected - 3
+ Received + 3
- <p>Same Line.
- Same Line.</p>
- <p>2nd line.</p>
+ <p xmlns="http://www.w3.org/1999/xhtml">Same Line.
+ Same Line.</p>
+ <p xmlns="http://www.w3.org/1999/xhtml">2nd line.</p>
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:41:106)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L51
expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
- <p><strong>Message with Markdown</strong></p>
+ <p xmlns="http://www.w3.org/1999/xhtml"><strong>Message with Markdown</strong></p>
- <p>Should see bold text.</p>
+ <p xmlns="http://www.w3.org/1999/xhtml">Should see bold text.</p>
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:51:7)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L64
expect(received).toBe(expected) // Object.is equality
- Expected - 4
+ Received + 1
- <pre class="webchat__render-markdown__code-block"><webchat--code-block-copy-button class="webchat__code-block-copy-button" data-alt-copied="Copied" data-alt-copy="Copy" data-value="{
- "hello": "World!"
- }
- "></webchat--code-block-copy-button><code>{
+ <pre xmlns="http://www.w3.org/1999/xhtml"><code>{
"hello": "World!"
}
</code></pre>
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:64:8)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L76
expect(received).toBe(expected) // Object.is equality
Expected: "<p><a href=\"https://sample.com\" aria-label=\"example \" rel=\"noopener noreferrer\" target=\"_blank\">example<img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"\" class=\"webchat__render-markdown__external-link-icon\" /></a></p>"
Received: "<p xmlns=\"http://www.w3.org/1999/xhtml\"><a href=\"https://sample.com\" aria-label=\"example \" rel=\"noopener noreferrer\" target=\"_blank\">example<img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"\" class=\"webchat__render-markdown__external-link-icon\" /></a></p>"
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:76:98)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L85
expect(received).toBe(expected) // Object.is equality
Expected: "<p><a href=\"https://sample.com\" aria-label=\"example Opens in a new window, external.\" rel=\"noopener noreferrer\" target=\"_blank\">example<img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"\" class=\"webchat__render-markdown__external-link-icon\" title=\"Opens in a new window, external.\" /></a></p>"
Received: "<p xmlns=\"http://www.w3.org/1999/xhtml\"><a href=\"https://sample.com\" aria-label=\"example Opens in a new window, external.\" rel=\"noopener noreferrer\" target=\"_blank\">example<img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"\" class=\"webchat__render-markdown__external-link-icon\" title=\"Opens in a new window, external.\" /></a></p>"
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:85:84)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L93
expect(received).toBe(expected) // Object.is equality
Expected: "<p><a href=\"sip:[email protected]\" rel=\"noopener noreferrer\" target=\"_blank\">[email protected]</a></p>"
Received: "<p xmlns=\"http://www.w3.org/1999/xhtml\"><a href=\"sip:[email protected]\" rel=\"noopener noreferrer\" target=\"_blank\">[email protected]</a></p>"
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:93:109)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L101
expect(received).toBe(expected) // Object.is equality
Expected: "<p><a href=\"tel:505-503-4455\" rel=\"noopener noreferrer\" target=\"_blank\">(505)503-4455</a></p>"
Received: "<p xmlns=\"http://www.w3.org/1999/xhtml\"><a href=\"tel:505-503-4455\" rel=\"noopener noreferrer\" target=\"_blank\">(505)503-4455</a></p>"
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:101:102)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L109
expect(received).toBe(expected) // Object.is equality
Expected: "<p><del>strike text</del></p>"
Received: "<p xmlns=\"http://www.w3.org/1999/xhtml\"><del>strike text</del></p>"
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:109:84)
|
Loading