Skip to content
Myr

Fixed two assertions failing due to Collection#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 7df254b · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:spec/spec.collection.js+2 added-2 removed
269 unmodified lines
270 end271 272 describe '#keys()'273 it 'should return indices when array-like'274 $(['foo', 'bar']).keys().at(0).should.eql 0275 $(['foo', 'bar']).keys().at(1).should.eql 1274 $(['foo', 'bar']).keys().at(0).should.eql '0'275 $(['foo', 'bar']).keys().at(1).should.eql '1'276 end277 278 it 'should return keys when an object'279 $({ foo: 'bar', baz: 'raz' }).keys().at(0).should.eql 'foo'
193 unmodified lines