Skip to content

Commit

Permalink
test: update test data.
Browse files Browse the repository at this point in the history
  • Loading branch information
usualoma committed May 4, 2024
1 parent e8789be commit 27173ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vite/island-components.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default WrappedExportViaVariable;`
const code = `const utilityFn = () => {}
const Utility_Fn = () => {}
const ExportViaVariable = () => <h1>Hello</h1>
export { utilityFn, ExportViaVariable as default }`
export { utilityFn, Utility_Fn, ExportViaVariable as default }`
const result = transformJsxTags(code, 'ExportViaVariable.tsx')
expect(result).toBe(
`import { HonoXIsland } from "honox/vite/components";
Expand All @@ -182,7 +182,7 @@ const ExportViaVariable = () => <h1>Hello</h1>;
const WrappedExportViaVariable = function (props) {
return import.meta.env.SSR ? <HonoXIsland componentName="ExportViaVariable.tsx" Component={ExportViaVariable} props={props} /> : <ExportViaVariable {...props}></ExportViaVariable>;
};
export { utilityFn, WrappedExportViaVariable as default };`
export { utilityFn, Utility_Fn, WrappedExportViaVariable as default };`
)
})
})
Expand Down

0 comments on commit 27173ce

Please sign in to comment.