Skip to content

Commit

Permalink
Bail out of Reflect.enumerate tests if it doesn't exist.
Browse files Browse the repository at this point in the history
(Firefox Nightly v42 has all the `Reflect` methods but this one)
  • Loading branch information
ljharb committed Jul 24, 2015
1 parent 9a437f2 commit a717bb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/reflect.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ describe('Reflect', function () {
});

describe('.enumerate()', function () {
if (typeof Reflect.enumerate === 'undefined') {
return it('exists', function () {
expect(Reflect).to.have.property('enumerate');
});
}

it('is a function', function () {
expect(typeof Reflect.enumerate).to.equal('function');
});
Expand Down

0 comments on commit a717bb9

Please sign in to comment.