You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/set-clones-input/_config.js

16 lines
246 B

export default {
compileOptions: {
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();
}
};