import { haveText, html, test } from '../utils'
test('can register custom data providers',
html`
`,
({ get }) => get('span').should(haveText('bar'))
)
test.only('can accept initial params',
html`
`,
({ get }) => {
get('h1').should(haveText('baz'))
get('h2').should(haveText('bob'))
}
)
test.only('can spread together',
html`
`,
({ 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'))
}
)