mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
make test harder to pass
This commit is contained in:
parent
2c4c7079e5
commit
5360bbf09f
@ -1,7 +1,15 @@
|
||||
const values = [
|
||||
{ name: 'Alpha' },
|
||||
{ name: 'Beta' },
|
||||
{ name: 'Gamma' }
|
||||
];
|
||||
|
||||
export default {
|
||||
// solo: true,
|
||||
|
||||
data: {
|
||||
values: [ 'Alpha', 'Beta', 'Gamma' ],
|
||||
selected: [ 'Beta' ]
|
||||
values,
|
||||
selected: [ values[1] ]
|
||||
},
|
||||
|
||||
html: `
|
||||
|
@ -1,7 +1,7 @@
|
||||
{{#each values as value}}
|
||||
<label>
|
||||
<input type="checkbox" value="{{value}}" bind:group='selected' /> {{value}}
|
||||
<input type="checkbox" value="{{value}}" bind:group='selected' /> {{value.name}}
|
||||
</label>
|
||||
{{/each}}
|
||||
|
||||
<p>{{selected}}</p>
|
||||
<p>{{selected.map( function ( value ) { return value.name; }) }}</p>
|
Loading…
Reference in New Issue
Block a user