editor.js/test/cypress/tests/collaborative-editing/OperationObserver.spec.ts
2022-12-07 20:56:41 +00:00

26 lines
738 B
TypeScript

describe('Operation Observer', () => {
/**
* Mock Public EventBus
* Mock previous state in Document State Store
*
* Act - emulate Change Event at Public EventBus
*
* Expect - Private EventBus got correct operation
*/
it('should create INSERT operation when it receives a change event after adding data', () => {
console.log('todo');
});
it('should create DELETE operation when it receives a change event after removing data', () => {
console.log('todo');
});
it('should create DELETE and INSERT operations when it receives a change event after replacing data', () => {
console.log('todo');
});
it('should put new Document State to the store', () => {
console.log('todo');
});
});