Skip to content

Commit

Permalink
update rendering test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Dec 6, 2024
1 parent 3693c24 commit ab516a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/emailMarkdown.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { render } from "@react-email/render";
import { EmailMarkdown } from "../src";

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

expect(actualOutput).toMatchInlineSnapshot(
`"<!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>"`
`"<!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><!--/$-->"`
);
});
});

0 comments on commit ab516a4

Please sign in to comment.