Skip to content

Commit

Permalink
testing #549 in preact
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 6, 2024
1 parent 0f2df87 commit 1f85f63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/__snapshots__/jsx_preact.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ snapshot[`build a site with jsx/tsx modules using Preact 3`] = `
},
},
{
content: '<!DOCTYPE html>
<html><head><title>This is the title</title></head><body><main><h1>This is the title</h1><p>This is a JSX page <a href="/blog/">Go to home</a></p></main></body></html>',
content: \`<!DOCTYPE html>
<html><head><title>This is the title</title></head><body><main><h1>This is the title</h1><p onclick="alert('Hello')">This is a JSX page <a href="/blog/">Go to home</a></p></main></body></html>\`,
data: {
basename: "with-function",
children: [
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/jsx_preact/with-function.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const title = "This is the title";
export default ({ title }, { url }) => (
<>
<h1>{title}</h1>
<p>
<p onclick="alert('Hello')">
This is a JSX page <a href={url("/")}>Go to home</a>
</p>
</>
Expand Down

0 comments on commit 1f85f63

Please sign in to comment.