mirror of https://github.com/sveltejs/svelte
parent
c7f15738ee
commit
92b49eed4e
@ -1,9 +1,15 @@
|
|||||||
export default {
|
export default {
|
||||||
html: '<div><p>Hello</p></div>',
|
html: `
|
||||||
|
<div><p>Hello</p></div>
|
||||||
|
`,
|
||||||
|
|
||||||
test ( assert, component, target ) {
|
test ( assert, component, target ) {
|
||||||
assert.equal( component.get( 'data' ), 'Hello' );
|
assert.equal( component.get( 'data' ), 'Hello' );
|
||||||
component.set({data: 'World'});
|
|
||||||
|
component.set({ data: 'World' });
|
||||||
assert.equal( component.get( 'data' ), 'World' );
|
assert.equal( component.get( 'data' ), 'World' );
|
||||||
assert.equal( target.innerHTML, '<div><p>World<!----></p></div>' );
|
assert.htmlEqual( target.innerHTML, `
|
||||||
|
<div><p>World</p></div>
|
||||||
|
` );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in new issue