Skip to content

Commit

Permalink
Use a new Map and Set in these tests rather than clearing an existing…
Browse files Browse the repository at this point in the history
… one from other tests.
  • Loading branch information
ljharb committed Sep 11, 2014
1 parent 793b06e commit 7cabf05
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 @@ -248,7 +248,7 @@ describe('Collections', function() {
});

it('should iterate over empty keys', function() {
map.clear();
var map = new Map();
var expectedKeys = [{}, null, undefined, '', NaN, 0];
expectedKeys.forEach(function (key) {
map.set(key, true);
Expand Down Expand Up @@ -603,7 +603,7 @@ describe('Collections', function() {
});

it('should iterate over empty keys', function() {
set.clear();
var set = new Set();
var expectedKeys = [{}, null, undefined, '', NaN, 0];
expectedKeys.forEach(function (key) {
set.add(key);
Expand Down

0 comments on commit 7cabf05

Please sign in to comment.