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-block/_config.js

13 lines
437 B

export default {
data: {
animals: [ 'alpaca', 'baboon', 'capybara' ]
},
8 years ago
html: '<p>alpaca</p><p>baboon</p><p>capybara</p><!---->',
test ( assert, component, target ) {
component.set({ animals: [ 'alpaca', 'baboon', 'caribou', 'dogfish' ] });
8 years ago
assert.equal( target.innerHTML, '<p>alpaca</p><p>baboon</p><p>caribou</p><p>dogfish</p><!---->' );
component.set({ animals: [] });
8 years ago
assert.equal( target.innerHTML, '<!---->' );
}
};