import { haveText, html, test } from '../utils' test('can register custom data providers', html`
`, ({ get }) => get('span').should(haveText('bar')) ) 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')) } )