mirror of
https://github.com/codex-team/editor.js
synced 2024-06-08 08:52:15 +02:00
26 lines
738 B
TypeScript
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');
|
||
|
});
|
||
|
});
|