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/compiler/component-yield/_config.js

9 lines
310 B

export default {
html: '<main><div class="sidebar-widget">Hello Hello</div></main>',
test ( assert, component, target ) {
component.set({ a: 'World' });
assert.equal( component.get( 'a' ), 'World' );
assert.equal( target.innerHTML, '<main><div class="sidebar-widget">Hello World</div></main>' );
}
};