Add code block copy button #1152
Annotations
3 errors
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L61
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 4
- <pre><code>{
+ <pre class="webchat__render-markdown__code-block"><webchat__code-block-copy-button data-value="{
+ "hello": "World!"
+ }
+ "></webchat__code-block-copy-button><code>{
"hello": "World!"
}
</code></pre>
at Object.toBe (packages/bundle/src/__tests__/renderMarkdown.spec.js:61:7)
|
Run jest --testPathPattern packages/:
packages/bundle/src/__tests__/renderMarkdown.spec.js#L67
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><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:67:98)
|
Run jest --testPathPattern packages/
Process completed with exit code 1.
|
Loading