Browse Source

Merge branch 'master' into t/1299

# Conflicts:
#	tests/model/document.js
Maciej Gołaszewski 7 years ago
parent
commit
957b667773
1 changed files with 2 additions and 5 deletions
  1. 2 5
      packages/ckeditor5-engine/tests/model/document.js

+ 2 - 5
packages/ckeditor5-engine/tests/model/document.js

@@ -20,11 +20,7 @@ describe( 'Document', () => {
 
 	beforeEach( () => {
 		model = new Model();
-		doc = new Document( model );
-
-		// Normally Model is the one who creates Document instance and keeps it as reference.
-		// We have to be sure that Model uses the right Document instance.
-		model.document = doc;
+		doc = model.document;
 	} );
 
 	describe( 'constructor()', () => {
@@ -289,6 +285,7 @@ describe( 'Document', () => {
 
 		it( 'should call all already processed callbacks again if a callback returned true', () => {
 			const callA = sinon.spy();
+
 			const callB = sinon.stub();
 			callB.onFirstCall().returns( true ).onSecondCall().returns( false );
 			const callC = sinon.spy();