0
0
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:
Rich Harris 2017-03-16 16:46:41 -04:00
parent 2c4c7079e5
commit 5360bbf09f
2 changed files with 12 additions and 4 deletions

View File

@ -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: `

View File

@ -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>