mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 18:06:15 -04:00
Changeset: Migrate from opAssembler()
to serializeOps()
This commit is contained in:
parent
d5a7bf7a8f
commit
b5486b6753
4 changed files with 29 additions and 26 deletions
|
@ -3,11 +3,9 @@
|
|||
const Changeset = require('../../../static/js/Changeset');
|
||||
|
||||
describe('easysync-assembler', function () {
|
||||
it('opAssembler', async function () {
|
||||
it('deserialize and serialize', async function () {
|
||||
const x = '-c*3*4+6|3=az*asdf0*1*2*3+1=1-1+1*0+1=1-1+1|c=c-1';
|
||||
const assem = Changeset.opAssembler();
|
||||
for (const op of Changeset.deserializeOps(x)) assem.append(op);
|
||||
expect(assem.toString()).to.equal(x);
|
||||
expect(Changeset.serializeOps(Changeset.deserializeOps(x))).to.equal(x);
|
||||
});
|
||||
|
||||
it('smartOpAssembler', async function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue