Fixed test failure in IE

This commit is contained in:
Steve Gravrock
2020-02-12 16:55:40 -08:00
committed by Steve Gravrock
parent 1e8619df88
commit 235efe52f1

View File

@@ -818,11 +818,16 @@ describe('matchersUtil', function() {
Array.prototype,
'findIndex'
);
if (!findIndexDescriptor) {
return;
}
beforeEach(function() {
if (!findIndexDescriptor) {
jasmine
.getEnv()
.pending(
'Environment does not have a property descriptor for Array.prototype.findIndex'
);
}
Object.defineProperty(Array.prototype, 'findIndex', {
enumerable: true,
value: function(predicate) {