fixup! easysync tests: add some more smartOpAssembler tests

fix-textlinesmutator
Richard Hansen 2021-11-29 22:52:39 -05:00
parent 06f7124ead
commit d0ac8ec747
1 changed files with 16 additions and 6 deletions

View File

@ -102,9 +102,14 @@ describe('easysync-assembler', function () {
'attr5,5', 'attr5,5',
]); ]);
assem.appendOpWithText('-', 'test', '*3*4*5', pool); padutils.warnDeprecated.disabledForTestingOnly = true;
assem.appendOpWithText('-', 'test', '*3*4*5', pool); try {
assem.appendOpWithText('-', 'test', '*1*4*5', pool); assem.appendOpWithText('-', 'test', '*3*4*5', pool);
assem.appendOpWithText('-', 'test', '*3*4*5', pool);
assem.appendOpWithText('-', 'test', '*1*4*5', pool);
} finally {
delete padutils.warnDeprecated.disabledForTestingOnly;
}
assem.endDocument(); assem.endDocument();
expect(assem.toString()).to.equal('*3*4*5-8*1*4*5-4'); expect(assem.toString()).to.equal('*3*4*5-8*1*4*5-4');
}); });
@ -119,9 +124,14 @@ describe('easysync-assembler', function () {
'attr5,5', 'attr5,5',
]); ]);
assem.appendOpWithText('-', 'test\ntest', '*3*4*5', pool); padutils.warnDeprecated.disabledForTestingOnly = true;
assem.appendOpWithText('-', '\ntest\n', '*3*4*5', pool); try {
assem.appendOpWithText('-', '\ntest', '*1*4*5', pool); assem.appendOpWithText('-', 'test\ntest', '*3*4*5', pool);
assem.appendOpWithText('-', '\ntest\n', '*3*4*5', pool);
assem.appendOpWithText('-', '\ntest', '*1*4*5', pool);
} finally {
delete padutils.warnDeprecated.disabledForTestingOnly;
}
assem.endDocument(); assem.endDocument();
expect(assem.toString()).to.equal('*3*4*5|3-f*1*4*5|1-1*1*4*5-4'); expect(assem.toString()).to.equal('*3*4*5|3-f*1*4*5|1-1*1*4*5-4');
}); });