|
|
@@ -31,10 +31,10 @@ describe( 'DeleteCommand', () => {
|
|
|
|
|
|
describe( 'execute', () => {
|
|
|
it( 'uses enqueueChanges', () => {
|
|
|
- const spy = sinon.spy( doc, 'enqueueChanges' );
|
|
|
-
|
|
|
setData( doc, '<p>foo<selection />bar</p>' );
|
|
|
|
|
|
+ const spy = sinon.spy( doc, 'enqueueChanges' );
|
|
|
+
|
|
|
editor.execute( 'delete' );
|
|
|
|
|
|
expect( spy.calledOnce ).to.be.true;
|