`,
({ get }) => {
get('h1').should(haveText('baz'))
get('h2').should(haveText('bob'))
}
)
test('init functions inside custom datas are called automatically',
html`
`,
({ get }) => {
get('span').should(haveText('baz'))
}
)
test('init functions "this" context is reactive',
html`
`,
({ get }) => {
get('span').should(haveText('bar'))
get('button').click()
get('span').should(haveText('baz'))
}
)
test('init functions have access to the parent scope',
html`
`,
({ get }) => {
get('p').should(haveText('bar'))
}
)
test('destroy functions inside custom datas are called automatically',
html`
`,
({ get }) => {
get('button').click()
get('span').should(haveText('foo'))
}
)