Skip to content

Commit

Permalink
Re-enable some webkit tests (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jan 24, 2024
1 parent 33a4408 commit c22eb38
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions test/should.js
Expand Up @@ -3190,9 +3190,7 @@ describe('should', function() {
false.should.be.extensible;
}, 'expected false to be extensible');

// A bug in Safari 10 causes the below test to fail. It can be re-enabled
// once the bug is fixed. See https://github.com/chaijs/chai/issues/855.
/*if (typeof Proxy === 'function') {
if (typeof Proxy === 'function') {
var proxy = new Proxy({}, {
isExtensible: function() {
throw new TypeError();
Expand All @@ -3203,7 +3201,7 @@ describe('should', function() {
// .extensible should not suppress errors, thrown in proxy traps
proxy.should.be.extensible;
}, { name: 'TypeError' });
}*/
}
});

it('sealed', function() {
Expand Down Expand Up @@ -3242,9 +3240,7 @@ describe('should', function() {
false.should.not.be.sealed;
}, 'expected false to not be sealed');

// A bug in Safari 10 causes the below test to fail. It can be re-enabled
// once the bug is fixed. See https://github.com/chaijs/chai/issues/855.
/*if (typeof Proxy === 'function') {
if (typeof Proxy === 'function') {
var proxy = new Proxy({}, {
ownKeys: function() {
throw new TypeError();
Expand All @@ -3258,7 +3254,7 @@ describe('should', function() {
// .sealed should not suppress errors, thrown in proxy traps
proxy.should.be.sealed;
}, { name: 'TypeError' });
}*/
}
});

it('frozen', function() {
Expand Down Expand Up @@ -3297,9 +3293,7 @@ describe('should', function() {
false.should.not.be.frozen;
}, 'expected false to not be frozen');

// A bug in Safari 10 causes the below test to fail. It can be re-enabled
// once the bug is fixed. See https://github.com/chaijs/chai/issues/855.
/*if (typeof Proxy === 'function') {
if (typeof Proxy === 'function') {
var proxy = new Proxy({}, {
ownKeys: function() {
throw new TypeError();
Expand All @@ -3313,6 +3307,6 @@ describe('should', function() {
// .frozen should not suppress errors, thrown in proxy traps
proxy.should.be.frozen;
}, { name: 'TypeError' });
}*/
}
});
});

0 comments on commit c22eb38

Please sign in to comment.