Skip to content

Commit

Permalink
[Tests] Only skip generic iterable tests when there's no Symbol.itera…
Browse files Browse the repository at this point in the history
…tor.

Relates to #3.
  • Loading branch information
ljharb committed Dec 10, 2015
1 parent 8e34291 commit b8ef004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ var genericIterator = function (obj) {
};
};

test('iterables', { skip: !symbolIterator }, function (t) {
test('iterables', function (t) {
t.test('Maps', { skip: typeof Map !== 'function' }, function (mt) {
var a = new Map();
a.set('a', 'b');
Expand Down Expand Up @@ -266,7 +266,7 @@ test('iterables', { skip: !symbolIterator }, function (t) {
});

var obj = { a: { aa: true }, b: [2] };
t.test('generic iterables', function (it) {
t.test('generic iterables', { skip: !symbolIterator }, function (it) {
var a = { foo: 'bar' };
var b = { bar: 'baz' };

Expand All @@ -287,7 +287,7 @@ test('iterables', { skip: !symbolIterator }, function (t) {
it.end();
});

t.test('unequal iterables', function (it) {
t.test('unequal iterables', { skip: !symbolIterator }, function (it) {
var c = {};
c[symbolIterator] = genericIterator({});
var d = {};
Expand Down

0 comments on commit b8ef004

Please sign in to comment.