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

Commit

Permalink
Add tests for model.createBatch() type parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed May 17, 2019
1 parent 4fadd39 commit 578a649
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,15 @@ describe( 'Model', () => {

describe( 'createBatch()', () => {
it( 'should return instance of Batch', () => {
expect( model.createBatch() ).to.be.instanceof( Batch );
const batch = model.createBatch();
expect( batch ).to.be.instanceof( Batch );
expect( batch.type ).to.equal( 'default' );
} );

it( 'should allow to define type of Batch', () => {
const batch = model.createBatch( 'transparent' );
expect( batch ).to.be.instanceof( Batch );
expect( batch.type ).to.equal( 'transparent' );
} );
} );

Expand Down

0 comments on commit 578a649

Please sign in to comment.