Skip to content
Myr

Fixed faulty Collection#toArray() spec due to keys() returning strings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 60ed9bd · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:spec/spec.collection.js+1 added-1 removed
281 unmodified lines
282 end283 284 describe '#toArray()'285 it 'should return an array'286 $(['foo', 'bar']).keys().toArray().should.eql [0, 1]286 $(['foo', 'bar']).keys().toArray().should.eql ['0', '1']287 end288 289 it 'should work on nested collections'290 $([$(['foo']), $(['bar'])]).toArray().should.eql [['foo'], ['bar']]
182 unmodified lines