mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
textLinesMutator: coverage for changed attributes in multiline keeps
This commit is contained in:
parent
93447b7493
commit
0af728ffee
1 changed files with 9 additions and 0 deletions
|
@ -188,6 +188,15 @@ describe('easysync-mutations', function () {
|
||||||
|
|
||||||
testMutateTextLines(1, 'Z:4<1|1-2-1|1+1+1$\nc', ['a\n', 'b\n'], ['\n', 'c\n']);
|
testMutateTextLines(1, 'Z:4<1|1-2-1|1+1+1$\nc', ['a\n', 'b\n'], ['\n', 'c\n']);
|
||||||
testMutateTextLines(2, 'Z:4>0|1-2-1|2+3$\nc\n', ['a\n', 'b\n'], ['\n', 'c\n', '\n']);
|
testMutateTextLines(2, 'Z:4>0|1-2-1|2+3$\nc\n', ['a\n', 'b\n'], ['\n', 'c\n', '\n']);
|
||||||
|
|
||||||
|
it('mutate keep only lines', async function () {
|
||||||
|
const lines = ['1\n', '2\n', '3\n', '4\n'];
|
||||||
|
const result = lines.slice();
|
||||||
|
const cs = 'Z:8>0*0|1=2|2=2';
|
||||||
|
|
||||||
|
Changeset.mutateTextLines(cs, lines);
|
||||||
|
expect(result).to.eql(lines);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('mutate attributions', function () {
|
describe('mutate attributions', function () {
|
||||||
|
|
Loading…
Reference in a new issue