|
|
@@ -250,8 +250,6 @@ describe( 'SelectionObserver', () => {
|
|
|
changeDomSelection();
|
|
|
|
|
|
// Wait 100ms.
|
|
|
- // Note that it's difficult/not possible to test lodash#debounce with sinon fake timers.
|
|
|
- // See: https://github.com/lodash/lodash/issues/304
|
|
|
setTimeout( () => {
|
|
|
// Check if spy was called.
|
|
|
expect( spy.notCalled ).to.true;
|
|
|
@@ -294,8 +292,6 @@ describe( 'SelectionObserver', () => {
|
|
|
changeDomSelection();
|
|
|
|
|
|
// Wait 100ms.
|
|
|
- // Note that it's difficult/not possible to test lodash#debounce with sinon fake timers.
|
|
|
- // See: https://github.com/lodash/lodash/issues/304
|
|
|
setTimeout( () => {
|
|
|
// And destroy observer.
|
|
|
selectionObserver.destroy();
|