mirror of https://github.com/sveltejs/svelte
parent
8ad22bcf4a
commit
edc61b7bd8
@ -1,10 +1,14 @@
|
||||
export default {
|
||||
dev: true,
|
||||
|
||||
data: {
|
||||
a: 42
|
||||
},
|
||||
|
||||
test ( assert, component ) {
|
||||
const obj = { a: 1 };
|
||||
component.set( obj );
|
||||
component.set( obj ); // will fail if the object is not cloned
|
||||
component.destroy();
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in new issue