mirror of https://github.com/sveltejs/svelte
commit
3e2366d360
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
test({ assert, component }) {
|
||||
assert.equal(component.bar1, 42);
|
||||
assert.equal(component.bar2, 42);
|
||||
component.bar1 = 100;
|
||||
component.bar2 = 100;
|
||||
assert.equal(component.bar1, 42);
|
||||
assert.equal(component.bar2, 100);
|
||||
}
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
const foo1 = 42;
|
||||
let foo2 = 42;
|
||||
export { foo1 as bar1, foo2 as bar2 };
|
||||
</script>
|
Loading…
Reference in new issue