Przeglądaj źródła

Fixed tests after changes made to model utilities setData.

Szymon Kupś 9 lat temu
rodzic
commit
231e73672e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      packages/ckeditor5-enter/tests/entercommand.js

+ 2 - 2
packages/ckeditor5-enter/tests/entercommand.js

@@ -32,10 +32,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>' );