Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit e053bff

Browse files
committed
batchAdd.spec.js comments
1 parent 97369c8 commit e053bff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/BatchAdd.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('batchedAdd.vue', () => {
5555
};
5656
let batchItems = (items) => {
5757
if (singleCount !== 102) {
58-
return done(new Error('Expected 100 single items, found ' + singleCount));
58+
return done(new Error('Expected 102 single items, found ' + singleCount));
5959
}
6060

6161
if (items.length === 1) {
@@ -72,6 +72,7 @@ describe('batchedAdd.vue', () => {
7272

7373
setTimeout(() => batch('item1'), 10);
7474
setTimeout(() => batch('item2'), 20);
75+
// The above loop + 2 timeouts = 3 ticks, the below are further ticks to be batched
7576
setTimeout(() => batch('item3'), 30);
7677
setTimeout(() => batch('item4'), 40);
7778
setTimeout(() => batch('item5'), 50);

0 commit comments

Comments
 (0)