mirror of https://github.com/sveltejs/svelte
10 lines
303 B
10 lines
303 B
export default {
|
|
html: '<div><p>Hello</p></div>',
|
|
test ( assert, component, target ) {
|
|
assert.equal( component.get( 'data' ), 'Hello' );
|
|
component.set({data: 'World'});
|
|
assert.equal( component.get( 'data' ), 'World' );
|
|
assert.equal( target.innerHTML, '<div><p>World<!----></p></div>' );
|
|
}
|
|
};
|