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/prop-accessors/_config.js

13 lines
313 B

6 years ago
export default {
accessors: false,
test({ assert, component }) {
assert.equal(component.foo1, 42);
assert.equal(component.foo2(), 42);
assert.equal(component.bar, undefined);
component.foo1 = null;
component.foo2 = null;
assert.equal(component.foo1, 42);
assert.equal(component.foo2(), 42);
}
};