mirror of https://github.com/sveltejs/svelte
parent
951cbcd585
commit
aa528e5dba
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
test({ assert, component }) {
|
||||
assert.deepEqual(component.foo, { baz: 1 });
|
||||
}
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let foo = {};
|
||||
let bar = 'baz';
|
||||
foo[bar] = 1;
|
||||
</script>
|
Loading…
Reference in new issue