|
@@ -30,10 +30,10 @@ beforeEach( () => {
|
|
|
|
|
|
|
|
describe( 'EnterCommand', () => {
|
|
describe( 'EnterCommand', () => {
|
|
|
it( 'enters a block using enqueueChanges', () => {
|
|
it( 'enters a block using enqueueChanges', () => {
|
|
|
- const spy = sinon.spy( doc, 'enqueueChanges' );
|
|
|
|
|
-
|
|
|
|
|
setData( doc, '<p>foo<selection /></p>' );
|
|
setData( doc, '<p>foo<selection /></p>' );
|
|
|
|
|
|
|
|
|
|
+ const spy = sinon.spy( doc, 'enqueueChanges' );
|
|
|
|
|
+
|
|
|
editor.execute( 'enter' );
|
|
editor.execute( 'enter' );
|
|
|
|
|
|
|
|
expect( getData( doc, { withoutSelection: true } ) ).to.equal( '<p>foo</p><p></p>' );
|
|
expect( getData( doc, { withoutSelection: true } ) ).to.equal( '<p>foo</p><p></p>' );
|