21 lines
339 B

export default {
props: {
tag: 'div',
text: 'Foo'
},
html: '<div>Foo</div>',
test({ assert, component, target }) {
const div = target.firstChild;
component.tag = 'nav';
component.text = 'Bar';
assert.htmlEqual(target.innerHTML, `
<nav>Bar</nav>
`);
const h1 = target.firstChild;
assert.notEqual(div, h1);
}
};