1234567891011121314151617181920212223242526 |
- import { haveText, html, notHaveClasses, notHaveText, test } from '../../utils'
- test('x-ignore',
- html`
- <div x-data="{ foo: 'bar' }">
- <div x-ignore>
- <span x-text="foo"></span>
- </div>
- </div>
- `,
- ({ get }) => get('span').should(notHaveText('bar'))
- )
- test('x-ignore.self',
- html`
- <div x-data="{ foo: 'bar' }">
- <h1 x-ignore.self :class="foo">
- <span x-text="foo"></span>
- </h1>
- </div>
- `,
- ({ get }) => {
- get('span').should(haveText('bar'))
- get('h1').should(notHaveClasses(['bar']))
- }
- )
|