var transform = require('otjs');
var res = transform.transformBatch([
{ type: 'del', line: 0 },
{ type: 'del', line: 0 },
{ type: 'del', line: 0 }
], [
{ type: 'add', line: 0, text: '0' },
{ type: 'add', line: 2, text: '2' },
{ type: 'add', line: 4, text: '4' }
]);
expect(res).to.eql([
[
{ type: 'del', line: 1 },
{ type: 'del', line: 2 },
{ type: 'del', line: 3 }
], [
{ type: 'add', line: 0, text: '0' },
{ type: 'add', line: 1, text: '2' },
{ type: 'add', line: 2, text: '4' }
]
]);