Use eql instead of equalArray

This commit is contained in:
Tom Payne
2013-04-30 18:21:58 +02:00
parent fcc079a5f2
commit efccede678
5 changed files with 62 additions and 62 deletions

View File

@@ -29,7 +29,7 @@ describe('ol.collection', function() {
it('adds elements to the collection', function() {
collection.push(1);
expect(collection.getLength()).to.eql(1);
expect(collection.getArray()).to.equalArray([1]);
expect(collection.getArray()).to.eql([1]);
expect(collection.getAt(0)).to.eql(1);
});
});
@@ -267,7 +267,7 @@ describe('ol.collection', function() {
it('adds elements to end of the collection', function() {
collection.extend([1, 2]);
expect(collection.getLength()).to.eql(2);
expect(collection.getArray()).to.equalArray([1, 2]);
expect(collection.getArray()).to.eql([1, 2]);
expect(collection.getAt(0)).to.eql(1);
expect(collection.getAt(1)).to.eql(2);
});