mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 11:22:41 +01:00
tests: Fix off-by-one bug in timeslider_follow.js
This commit is contained in:
parent
4d6ec1909a
commit
75591c9946
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue