Skip to content
Myr

Added specs for Collection#includes()

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

authored by visionmedia · committed by visionmedia · parent d2c50f6 · Browse files · 1 file+19 added−0 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+19 added−0 removed

  • tests:+19 added−0 removed

1 file+19 added−0 removed

modified:spec/spec.collection.js+19 added
433 unmodified lines
434 $({ foo: 'bar', baz: 'raz' }).join(' ').should.eql 'bar raz'435 end436 end437 438 describe '#includes()'439 it 'should return true when the value is present'440 $([1,2,3]).includes(2).should.be_true441 end442 443 it 'should return true when all values are present'444 $([1,2,3]).includes(2, 3).should.be_true445 end446 447 it 'should return false when the value is not present'448 $([1,2,3]).includes(4).should.be_false449 end450 451 it 'should return false when the any value is not present'452 $([1,2,3]).includes(1,2,4).should.be_false453 $([1,2,3]).includes(1,4,2).should.be_false454 end455 end456 457 describe '#toString()'458 it 'should output [Collection ...] for array'459 $([1,2,3]).toString().should.eql '[Collection 1,2,3]'460 end
12 unmodified lines