Skip to content

Commit f073292

Browse files
committed
test: add function returned tmpls
1 parent 8edc7bf commit f073292

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/basic.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,11 @@ test('nested events', async () => {
193193
)
194194
})
195195

196+
test('function composition basic', async () => {
197+
const view = () => html`<p>hello world</p>`
198+
const containerView = html`${view()}`
199+
const out = renderToString(containerView)
200+
await inlineSnapshot(out, `<p>hello world</p>`)
201+
})
202+
196203
test.run()

0 commit comments

Comments
 (0)