import { beVisible, haveText, html, notBeVisible, test } from '../../utils'
test('x-if',
html`
Toggle Me
`,
({ get }) => {
get('h1').should(notBeVisible())
get('button').click()
get('h1').should(beVisible())
get('button').click()
get('h1').should(notBeVisible())
}
)
test('x-if inside x-for allows nested directives',
html`
`,
({ get }) => {
get('span').should(haveText('1'))
}
)
test('x-if initializes after being added to the DOM to allow x-ref to work',
html`
`,
({ get }) => {
get('li').should(haveText('bar'))
}
)