You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/generator/each-blocks-nested-b/_config.js

36 lines
847 B

export default {
data: {
categories: [
{
name: 'animals',
things: [
{ name: 'aardvark' },
{ name: 'buffalo' },
{ name: 'chinchilla' }
]
},
{
name: 'countries',
things: [
{ name: 'albania' },
{ name: 'brazil' },
{ name: 'china' }
]
},
{
name: 'people',
things: [
{ name: 'alice' },
{ name: 'bob' },
{ name: 'carol' },
{ name: 'dave' }
]
}
]
},
html: `<p>animals: aardvark</p><p>animals: buffalo</p><p>animals: chinchilla</p><!--#each category.things--><p>countries: albania</p><p>countries: brazil</p><p>countries: china</p><!--#each category.things--><p>people: alice</p><p>people: bob</p><p>people: carol</p><p>people: dave</p><!--#each category.things--><!--#each categories-->`,
test ( assert, component, target ) {
// TODO
}
};