fixup! easysync tests: add some more smartOpAssembler tests

This commit is contained in:
Richard Hansen 2021-11-29 22:52:39 -05:00 committed by SamTV12345
parent f6235ce7a0
commit 6d224f55a6

View file

@ -102,9 +102,14 @@ describe('easysync-assembler', function () {
'attr5,5',
]);
padutils.warnDeprecated.disabledForTestingOnly = true;
try {
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();
expect(assem.toString()).to.equal('*3*4*5-8*1*4*5-4');
});
@ -119,9 +124,14 @@ describe('easysync-assembler', function () {
'attr5,5',
]);
padutils.warnDeprecated.disabledForTestingOnly = true;
try {
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();
expect(assem.toString()).to.equal('*3*4*5|3-f*1*4*5|1-1*1*4*5-4');
});