mirror of https://github.com/sveltejs/svelte
parent
7b4af88ec6
commit
f18ad5e6f6
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
html: `<div>hello </div>`,
|
||||
|
||||
test({ assert, component, target }) {
|
||||
const text = target.querySelector( 'div' ).textContent;
|
||||
assert.equal( text.charCodeAt( 5 ), 160 );
|
||||
}
|
||||
};
|
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
let name = 'hello';
|
||||
</script>
|
||||
|
||||
|
||||
<div>{name} </div>
|
Loading…
Reference in new issue