mirror of https://github.com/sveltejs/svelte
18 lines
315 B
18 lines
315 B
export default {
|
|
get props() {
|
|
return { foo: false };
|
|
},
|
|
|
|
test({ assert, component, target }) {
|
|
const inputs = target.querySelectorAll('input');
|
|
|
|
assert.ok(inputs[0].checked);
|
|
assert.ok(!inputs[1].checked);
|
|
|
|
component.foo = true;
|
|
|
|
assert.ok(!inputs[0].checked);
|
|
assert.ok(inputs[1].checked);
|
|
}
|
|
};
|