Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into t/1299
Browse files Browse the repository at this point in the history
# Conflicts:
#	tests/model/document.js
  • Loading branch information
jodator committed Mar 28, 2018
2 parents 8ec2b61 + 47e4f9f commit 4c78d41
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/model/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()', () => {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 4c78d41

Please sign in to comment.