Skip to content

Commit

Permalink
Explicitly ensure Map/Set are functions, not just truthy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 16, 2014
1 parent 870c809 commit caa7ef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('Collections', function () {
});

it('should exist in global namespace', function () {
expect(Map).to.be.ok;
expect(typeof Map).to.equal('function');
});

it('should have the right arity', function () {
Expand Down Expand Up @@ -437,7 +437,7 @@ describe('Collections', function () {
});

it('should exist in global namespace', function () {
expect(Set).to.be.ok;
expect(typeof Set).to.equal('function');
});

it('should have the right arity', function () {
Expand Down

0 comments on commit caa7ef8

Please sign in to comment.