Skip to content

Commit

Permalink
fixup! easysync tests: add some more smartOpAssembler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen authored and SamTV12345 committed Jun 3, 2024
1 parent f6235ce commit 6d224f5
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/tests/frontend/specs/easysync-assembler.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,14 @@ describe('easysync-assembler', function () {
'attr5,5',
]);

assem.appendOpWithText('-', 'test', '*3*4*5', pool);
assem.appendOpWithText('-', 'test', '*3*4*5', pool);
assem.appendOpWithText('-', 'test', '*1*4*5', pool);
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');
});
Expand All @@ -119,9 +124,14 @@ describe('easysync-assembler', function () {
'attr5,5',
]);

assem.appendOpWithText('-', 'test\ntest', '*3*4*5', pool);
assem.appendOpWithText('-', '\ntest\n', '*3*4*5', pool);
assem.appendOpWithText('-', '\ntest', '*1*4*5', pool);
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');
});
Expand Down

0 comments on commit 6d224f5

Please sign in to comment.