mirror of https://github.com/sveltejs/svelte
quote props if necessary in SSR mode - fixes #3312
parent
dbf503b9e1
commit
0fe04561b2
@ -0,0 +1 @@
|
||||
{$$props['x-y-z']}
|
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
props: {
|
||||
foo: 1
|
||||
},
|
||||
|
||||
html: `1`,
|
||||
|
||||
async test({ assert, component, target }) {
|
||||
component.foo = 2;
|
||||
assert.htmlEqual(target.innerHTML, `2`);
|
||||
}
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Nested from './Nested.svelte';
|
||||
|
||||
export let foo;
|
||||
</script>
|
||||
|
||||
<Nested x-y-z={foo}/>
|
Loading…
Reference in new issue