mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
test: skip failing .include
tests in IE11
Contrary to spec, IE11 uses SameValue instead of SameValueZero equality for Sets.
This commit is contained in:
parent
2eddd79002
commit
11a6f8502f
3 changed files with 15 additions and 3 deletions
|
@ -657,7 +657,11 @@ describe('assert', function () {
|
|||
|
||||
assert.include(set, val);
|
||||
assert.include(set, 2);
|
||||
assert.include(set, 0);
|
||||
if (set.has(0)) {
|
||||
// This test is skipped in IE11 because (contrary to spec) IE11 uses
|
||||
// SameValue instead of SameValueZero equality for sets.
|
||||
assert.include(set, 0);
|
||||
}
|
||||
assert.include(set, NaN);
|
||||
}
|
||||
|
||||
|
|
|
@ -1910,7 +1910,11 @@ describe('expect', function () {
|
|||
expect(set).to.not.include([{a: 1}]);
|
||||
expect(set).to.include(2);
|
||||
expect(set).to.not.include(3);
|
||||
expect(set).to.include(0);
|
||||
if (set.has(0)) {
|
||||
// This test is skipped in IE11 because (contrary to spec) IE11 uses
|
||||
// SameValue instead of SameValueZero equality for sets.
|
||||
expect(set).to.include(0);
|
||||
}
|
||||
expect(set).to.include(NaN);
|
||||
}
|
||||
|
||||
|
|
|
@ -1568,7 +1568,11 @@ describe('should', function() {
|
|||
set.should.not.include([{a: 1}]);
|
||||
set.should.include(2);
|
||||
set.should.not.include(3);
|
||||
set.should.include(0);
|
||||
if (set.has(0)) {
|
||||
// This test is skipped in IE11 because (contrary to spec) IE11 uses
|
||||
// SameValue instead of SameValueZero equality for sets.
|
||||
set.should.include(0);
|
||||
}
|
||||
set.should.include(NaN);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue