test: Add hidden attribute test

pull/8414/head
aMediocreDad 4 years ago
parent d63bab922e
commit a8c80d0472
No known key found for this signature in database
GPG Key ID: 253246939B19E311

@ -0,0 +1,10 @@
export default {
props: {
hidden: true
},
html: '<div hidden />',
test({ assert, component, target }) {
component.hidden = false;
assert.htmlEqual(target.innerHTML, '<div />');
}
};

@ -0,0 +1,5 @@
<script>
export let hidden = false;
</script>
<div {hidden} />
Loading…
Cancel
Save