Unverified Commit f2e6d420 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

add test case for bindings in member props (#49134)

### What?

test case for https://github.com/vercel/turbo/pull/4787

---------
Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 0a9afce9
import { useTestHarness } from '@turbo/pack-test-harness'
import * as Named from '../module.tsx'
export default function Page() {
useTestHarness(runTests)
const object = { Named: Named.Named }
const object2 = { Named }
return (
<>
<Named.Named>Hello World</Named.Named>
<object.Named>Hello There</object.Named>
<object2.Named.Named>Hello You</object2.Named.Named>
</>
)
}
function runTests() {
it('should render the element', () => {
const html = document.body.innerHTML
expect(html).toContain('Hello World')
expect(html).toContain('Hello There')
expect(html).toContain('Hello You')
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment