mirror of https://github.com/sveltejs/svelte
parent
3f52b5ac0e
commit
c75b73937f
@ -1,15 +0,0 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
|
||||
props: {
|
||||
a: 42
|
||||
},
|
||||
|
||||
test(assert, component) {
|
||||
const obj = { a: 1 };
|
||||
component.set(obj);
|
||||
component.set(obj); // will fail if the object is not cloned
|
||||
}
|
||||
};
|
@ -1,7 +0,0 @@
|
||||
<script>
|
||||
export let a;
|
||||
|
||||
function b() {
|
||||
return a + 1;
|
||||
}
|
||||
</script>
|
@ -1,14 +0,0 @@
|
||||
const props = { foo: 0 };
|
||||
|
||||
export default {
|
||||
props,
|
||||
|
||||
html: '0',
|
||||
|
||||
test(assert, component, target) {
|
||||
props.foo = 42;
|
||||
component.set(props);
|
||||
|
||||
assert.htmlEqual(target.innerHTML, '42');
|
||||
}
|
||||
};
|
@ -1 +0,0 @@
|
||||
{foo}
|
Loading…
Reference in new issue