Skip to content

Commit

Permalink
textLinesMutator: coverage for changed attributes in multiline keeps
Browse files Browse the repository at this point in the history
  • Loading branch information
webzwo0i committed Oct 30, 2021
1 parent 61652aa commit cde0fef
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/tests/frontend/specs/easysync-mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,16 @@ describe('easysync', function () {

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']);
});

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 () {
const testPoolWithChars = (() => {
Expand Down

0 comments on commit cde0fef

Please sign in to comment.