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/reactive-values-subscript-a.../_config.js

12 lines
354 B

export default {
test({ assert, component }) {
assert.deepEqual(component.foo, {});
component.bar = 'hello';
assert.deepEqual(component.foo, { hello: true });
component.bar = 'world';
assert.deepEqual(component.foo, { hello: true, world: true });
component.bar = false;
assert.deepEqual(component.foo, { hello: true, world: true });
}
};