mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
test: comment out broken tests in Safari 10 (#869)
Three tests on the `should` interface are failing in Safari 10 due to a bug related to proxies. These tests should be re-enabled once the bug is fixed. See https://github.com/chaijs/chai/issues/855.
This commit is contained in:
parent
0836c4539e
commit
8a2ef676e3
1 changed files with 12 additions and 6 deletions
|
@ -2205,7 +2205,9 @@ describe('should', function() {
|
|||
false.should.be.extensible;
|
||||
}, 'expected false to be extensible');
|
||||
|
||||
if (typeof Proxy === 'function') {
|
||||
// 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') {
|
||||
var proxy = new Proxy({}, {
|
||||
isExtensible: function() {
|
||||
throw new TypeError();
|
||||
|
@ -2216,7 +2218,7 @@ describe('should', function() {
|
|||
// .extensible should not suppress errors, thrown in proxy traps
|
||||
proxy.should.be.extensible;
|
||||
}, { name: 'TypeError' });
|
||||
}
|
||||
}*/
|
||||
});
|
||||
|
||||
it('sealed', function() {
|
||||
|
@ -2255,7 +2257,9 @@ describe('should', function() {
|
|||
false.should.not.be.sealed;
|
||||
}, 'expected false to not be sealed');
|
||||
|
||||
if (typeof Proxy === 'function') {
|
||||
// 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') {
|
||||
var proxy = new Proxy({}, {
|
||||
ownKeys: function() {
|
||||
throw new TypeError();
|
||||
|
@ -2269,7 +2273,7 @@ describe('should', function() {
|
|||
// .sealed should not suppress errors, thrown in proxy traps
|
||||
proxy.should.be.sealed;
|
||||
}, { name: 'TypeError' });
|
||||
}
|
||||
}*/
|
||||
});
|
||||
|
||||
it('frozen', function() {
|
||||
|
@ -2308,7 +2312,9 @@ describe('should', function() {
|
|||
false.should.not.be.frozen;
|
||||
}, 'expected false to not be frozen');
|
||||
|
||||
if (typeof Proxy === 'function') {
|
||||
// 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') {
|
||||
var proxy = new Proxy({}, {
|
||||
ownKeys: function() {
|
||||
throw new TypeError();
|
||||
|
@ -2322,6 +2328,6 @@ describe('should', function() {
|
|||
// .frozen should not suppress errors, thrown in proxy traps
|
||||
proxy.should.be.frozen;
|
||||
}, { name: 'TypeError' });
|
||||
}
|
||||
}*/
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue