Skip to content

Commit

Permalink
Replaced 'equals' with more explicit ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregpabian committed Feb 12, 2015
1 parent 6981dab commit e65242a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/mvc/collection/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ describe( 'add', function() {

var box = getCollection();

expect( box.length ).to.equals( 0 );
expect( box ).to.have.length( 0 );

box.add( getItem() );

expect( box.length ).to.equals( 1 );
expect( box ).to.have.length( 1 );

expect( box.get( 0 ) ).to.be.an.instanceof( Model );
} );
Expand Down Expand Up @@ -55,11 +55,11 @@ describe( 'remove', function() {

box.add( item );

expect( box.length ).to.equals( 1 );
expect( box ).to.have.length( 1 );

box.remove( 0 );

expect( box.length ).to.equals( 0 );
expect( box ).to.have.length( 0 );
} );

it( 'should remove the model by model', function() {
Expand All @@ -68,11 +68,11 @@ describe( 'remove', function() {

box.add( item );

expect( box.length ).to.equals( 1 );
expect( box ).to.have.length( 1 );

box.remove( item );

expect( box.length ).to.equals( 0 );
expect( box ).to.have.length( 0 );
} );

it( 'should fire the "remove" event', function() {
Expand Down

0 comments on commit e65242a

Please sign in to comment.