Skip to content

Commit f18f10e

Browse files
committed
adapt Lib.cleanNumber test for IE11
1 parent 05b3b7a commit f18f10e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

test/jasmine/tests/lib_test.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -1558,12 +1558,16 @@ describe('Test lib.js:', function() {
15581558

15591559
describe('cleanNumber', function() {
15601560
it('should return finite numbers untouched', function() {
1561-
[
1562-
0, 1, 2, 1234.567,
1563-
-1, -100, -999.999,
1564-
Number.MAX_VALUE, Number.MIN_VALUE, Number.EPSILON,
1565-
-Number.MAX_VALUE, -Number.MIN_VALUE, -Number.EPSILON
1566-
].forEach(function(v) {
1561+
var vals = [0, 1, 2, 1234.567, -1, -100, -999.999];
1562+
1563+
if(!Lib.isIE()) {
1564+
vals.push(
1565+
Number.MAX_VALUE, Number.MIN_VALUE, Number.EPSILON,
1566+
-Number.MAX_VALUE, -Number.MIN_VALUE, -Number.EPSILON
1567+
);
1568+
}
1569+
1570+
vals.forEach(function(v) {
15671571
expect(Lib.cleanNumber(v)).toBe(v);
15681572
});
15691573
});

0 commit comments

Comments
 (0)