Skip to content

Commit 28c8b13

Browse files
committed
Fix more tests
1 parent 758e145 commit 28c8b13

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/views/PropsView.test.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('views', () => {
2525
});
2626
const bodyEl = screen.queryAllByText('')[0];
2727
expect(bodyEl).toContainHTML(
28-
`<body><div><div class="debug" style="margin: 10px; padding: 10px; border: 2px solid lightgrey;"><h5 style="margin-top: 0px; margin-bottom: 0px;">Page:</h5><pre style="font-size: .8em; width: 100%; white-space: pre-wrap; word-wrap: break-word;">{\n "key": "value"\n}</pre></div></div></body>`);
28+
`<body><div><div class="debug" style="margin: 10px; padding: 10px; border: 2px solid lightgrey;"><h5 style="margin-top: 0px; margin-bottom: 0px;">Page:</h5><pre style="font-size: 0.8em; width: 100%; white-space: pre-wrap; word-wrap: break-word;">{\n "key": "value"\n}</pre></div></div></body>`);
2929
});
3030
});
3131
});

test/views/RichTextView.test.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ describe('views', () => {
5656

5757
await waitFor(() => {
5858
expect(rootEl.outerHTML).toEqual(`<div id="text-root">
59-
<p><a href="/some/link" title="Some link"><div style="background-color: rgb(255, 255, 255); border-width: 2px; border-style: dashed; border-radius: 4px; box-sizing: border-box; display: block; font-family: Open Sans, Helvetica, sans-serif; font-size: 20px; line-height: 33px; margin: 1px 0px 10px; min-height: 137px; padding: 50px 15px; position: relative; text-align: center; border-color: #e0b4b4; color: rgb(159, 58, 56);">Can't replace image, when there are no images in the data object!</div></a></p>
60-
<div style="background-color: rgb(255, 255, 255); border-width: 2px; border-style: dashed; border-radius: 4px; box-sizing: border-box; display: block; font-family: Open Sans, Helvetica, sans-serif; font-size: 20px; line-height: 33px; margin: 1px 0px 10px; min-height: 137px; padding: 50px 15px; position: relative; text-align: center; border-color: #e0b4b4; color: rgb(159, 58, 56);">Can't replace macro, when there are no macros in the data object!</div></div>`);
59+
<p><a href="/some/link" title="Some link"><div style="background-color: rgb(255, 255, 255); border-width: 2px; border-style: dashed; border-radius: 4px; box-sizing: border-box; display: block; font-family: Open Sans, Helvetica, sans-serif; font-size: 20px; line-height: 33px; margin: 1px 0px 10px; min-height: 137px; padding: 50px 15px; position: relative; text-align: center; border-color: rgb(224, 180, 180); color: rgb(159, 58, 56);">Can't replace image, when there are no images in the data object!</div></a></p>
60+
<div style="background-color: rgb(255, 255, 255); border-width: 2px; border-style: dashed; border-radius: 4px; box-sizing: border-box; display: block; font-family: Open Sans, Helvetica, sans-serif; font-size: 20px; line-height: 33px; margin: 1px 0px 10px; min-height: 137px; padding: 50px 15px; position: relative; text-align: center; border-color: rgb(224, 180, 180); color: rgb(159, 58, 56);">Can't replace macro, when there are no macros in the data object!</div></div>`);
6161

6262
});
6363
});

0 commit comments

Comments
 (0)