mirror of
https://github.com/codex-team/editor.js
synced 2024-05-17 22:06:49 +02:00
test: add cases for collaborative editing managers
This commit is contained in:
parent
665d5d1388
commit
cd46080d10
|
@ -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');
|
||||
});
|
||||
});
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
|
@ -0,0 +1,5 @@
|
|||
describe('Operation Observer', () => {
|
||||
it('should create operation by changes event from the public event bus', () => {
|
||||
console.log('todo');
|
||||
});
|
||||
});
|
|
@ -0,0 +1,5 @@
|
|||
describe('Transformer', () => {
|
||||
it('should transform the operation relative to the previous one', () => {
|
||||
console.log('todo');
|
||||
});
|
||||
});
|
|
@ -0,0 +1,9 @@
|
|||
describe('Undo Redo Manager', () => {
|
||||
it('should do \'UNDO\' operation', () => {
|
||||
console.log('todo');
|
||||
});
|
||||
|
||||
it('should do \'REDO\' operation', () => {
|
||||
console.log('todo');
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue