test: add cases for collaborative editing managers

This commit is contained in:
Ilya Maroz 2022-12-01 13:52:37 +00:00
parent 665d5d1388
commit cd46080d10
No known key found for this signature in database
GPG key ID: 3C27F3A104EBCE48
5 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,9 @@
describe('Operation Executor', () => {
it('should change document state with received operation', () => {
console.log('todo');
});
it('should fire \'OperationApplied\' event on receiving new operation', () => {
console.log('todo');
});
});

View file

@ -0,0 +1,29 @@
describe('Operation Manager', () => {
describe('Local changes', () => {
it('should put new operation to the Pending OPs until sending to the server', () => {
console.log('todo');
});
it('should remove operation from the Pending OPs after sending to the server', () => {
console.log('todo');
});
it('should put received operation with acknowledgement to the Resolved OPs', () => {
console.log('todo');
});
});
describe('Received changes', () => {
it('should transform Pending OPs relative to the received operation', () => {
console.log('todo');
});
it('should put received operation to the private Event Bus', () => {
console.log('todo');
});
it('should put received operation to the Resolved OPs', () => {
console.log('todo');
});
});
});

View file

@ -0,0 +1,5 @@
describe('Operation Observer', () => {
it('should create operation by changes event from the public event bus', () => {
console.log('todo');
});
});

View file

@ -0,0 +1,5 @@
describe('Transformer', () => {
it('should transform the operation relative to the previous one', () => {
console.log('todo');
});
});

View file

@ -0,0 +1,9 @@
describe('Undo Redo Manager', () => {
it('should do \'UNDO\' operation', () => {
console.log('todo');
});
it('should do \'REDO\' operation', () => {
console.log('todo');
});
});