Skip to content

Commit

Permalink
Adding failing tests for #295.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 14, 2014
1 parent b6ff10f commit 1022943
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ describe('Collections', function () {
});
});

it('returns the map from #set() for chaining', function () {
expect(map.set({}, {})).to.equal(map);
});

it('visits keys added in the iterator', function () {
var hasAdded = false;
var hasFoundD = false;
Expand Down Expand Up @@ -441,6 +445,10 @@ describe('Collections', function () {
expect(Set.length).to.equal(1);
});

it('returns the set from #add() for chaining', function () {
expect(set.add({})).to.equal(set);
});

it('should accept an iterable as argument', function () {
testSet('a');
testSet('b');
Expand Down

0 comments on commit 1022943

Please sign in to comment.