Skip to content

Commit

Permalink
Merge pull request #804 from vieiralucas/hotfix-ie10-failing
Browse files Browse the repository at this point in the history
Fix breaking test on IE10
  • Loading branch information
lucasfcosta authored Sep 19, 2016
2 parents 7683356 + d0242ee commit 01963b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,11 @@ describe('utilities', function () {

// Ensure that foo returns an Assertion (not a function)
expect(expect('x').x()).to.be.an.instanceOf(assertionConstructor);
expect(expect('x').x).to.be.an.instanceOf(assertionConstructor);

var hasProtoSupport = '__proto__' in Object;
if (hasProtoSupport) {
expect(expect('x').x).to.be.an.instanceOf(assertionConstructor);
}
});
});

Expand Down

0 comments on commit 01963b7

Please sign in to comment.