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'); }); });