Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ContextMap replaced with ComponentApi #160

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions __tests__/html-parser/__snapshots__/render-to-html.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,22 @@ exports[`renderToHTML should correctly parse async components 1`] = `
</html>"
`;

exports[`renderToHTML should correctly perform sub renders async render rendered computer can access the context defined on the parent 1`] = `
"<div class=\\"main\\">
<div><div>async foo</div><div>async foo</div><div>async bar</div></div>
</div>"
`;

exports[`renderToHTML should correctly perform sub renders async render renders a simple component 1`] = `"<div><div>Hello World!</div></div>"`;

exports[`renderToHTML should correctly perform sub renders sync render rendered computer can access the context defined on the parent 1`] = `
"<div class=\\"main\\">
<div><div>foo</div><div>foo</div><div>bar</div></div>
</div>"
`;

exports[`renderToHTML should correctly perform sub renders sync render renders a simple component 1`] = `"<div><div>Hello World!</div></div>"`;

exports[`renderToHTML should correctly render jsx with arrays in between elements 1`] = `
"<div>
<h1>Header</h1>
Expand Down
Loading