mirror of https://github.com/sveltejs/svelte
22 lines
366 B
22 lines
366 B
export default {
|
|
props: {
|
|
myClass: 'one two',
|
|
attributes: {
|
|
role: 'button'
|
|
}
|
|
},
|
|
|
|
html: '<div class="one two" role="button"></div>',
|
|
|
|
test({ assert, component, target }) {
|
|
component.myClass = 'one';
|
|
component.attributes = {
|
|
'aria-label': 'Test'
|
|
};
|
|
|
|
assert.htmlEqual(target.innerHTML, `
|
|
<div class="one" aria-label="Test"></div>
|
|
`);
|
|
}
|
|
};
|