mirror of https://github.com/sveltejs/svelte
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.
22 lines
355 B
22 lines
355 B
4 years ago
|
export default {
|
||
|
test({ assert, component, raf }) {
|
||
|
assert.equal(component.count, 0);
|
||
|
|
||
|
component.arr = ["2"];
|
||
|
|
||
|
assert.equal(component.count, 1);
|
||
|
|
||
|
component.arr = ["1", "2"];
|
||
|
|
||
|
assert.equal(component.count, 2);
|
||
|
|
||
|
component.arr = ["2", "1"];
|
||
|
|
||
|
assert.equal(component.count, 2);
|
||
|
|
||
|
component.arr = [];
|
||
|
|
||
|
assert.equal(component.count, 0);
|
||
|
},
|
||
|
};
|