tests: Fix off-by-one bug in `timeslider_follow.js`
parent
4d6ec1909a
commit
75591c9946
|
@ -13,7 +13,7 @@ describe('timeslider follow', function () {
|
||||||
// send 6 revisions
|
// send 6 revisions
|
||||||
const revs = 6;
|
const revs = 6;
|
||||||
const message = 'a\n\n\n\n\n\n\n\n\n\n';
|
const message = 'a\n\n\n\n\n\n\n\n\n\n';
|
||||||
const newLines = message.split('\n').length;
|
const newLines = message.split('\n').length - 1;
|
||||||
for (let i = 0; i < revs; i++) {
|
for (let i = 0; i < revs; i++) {
|
||||||
await helper.edit(message, newLines * i + 1);
|
await helper.edit(message, newLines * i + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue