import { haveText, html, test } from '../../utils' test.csp('Can use components and basic expressions with CSP-compatible build', [html`
`, ` Alpine.data('test', () => ({ foo: 'bar', change() { this.foo = 'baz' }, })) `], ({ get }) => { get('span').should(haveText('bar')) get('button').click() get('span').should(haveText('baz')) } )