Skip to content

Commit ab516a4

Browse files
committed
update rendering test
1 parent 3693c24 commit ab516a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

__tests__/emailMarkdown.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { render } from "@react-email/render";
33
import { EmailMarkdown } from "../src";
44

55
describe("ReactEmailMarkdown component renders correctly", () => {
6-
it("renders the markdown in the correct format for browsers", () => {
7-
const actualOutput = render(
6+
it("renders the markdown in the correct format for browsers", async () => {
7+
const actualOutput = await render(
88
<EmailMarkdown
99
markdown={`# Hello, World!
1010
## Hi, World`}
@@ -16,7 +16,7 @@ describe("ReactEmailMarkdown component renders correctly", () => {
1616
);
1717

1818
expect(actualOutput).toMatchInlineSnapshot(
19-
`"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><div><h1 style="font:700 23px / 32px &#x27;Roobert PRO&#x27;, system-ui, sans-serif">Hello, World!</h1><h2 style="background:url(&#x27;path/to/image&#x27;)">Hi, World</h2></div>"`
19+
`"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><div><h1 style="font:700 23px / 32px &#x27;Roobert PRO&#x27;, system-ui, sans-serif">Hello, World!</h1><h2 style="background:url(&#x27;path/to/image&#x27;)">Hi, World</h2></div><!--/$-->"`
2020
);
2121
});
2222
});

0 commit comments

Comments
 (0)