Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0b1b54

Browse files
committed
Disable unit tests of functionality not supported on IE11 (see josdejong#1303)
1 parent e007fe1 commit d0b1b54

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/function/utils/hasNumericValue.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const assert = require('assert')
22
const math = require('../../../src/main')
3-
// const isNumeric = math.isNumeric
43
const hasNumericValue = math.hasNumericValue
54
const bignumber = math.bignumber
65
const fraction = math.fraction
@@ -17,8 +16,9 @@ describe('hasNumericValue', function () {
1716
assert.strictEqual(hasNumericValue('2.3'), true)
1817
assert.strictEqual(hasNumericValue('100a'), false)
1918
assert.strictEqual(hasNumericValue('0x11'), true)
20-
assert.strictEqual(hasNumericValue('0b11'), true)
21-
assert.strictEqual(hasNumericValue('0o11'), true)
19+
// The following two tests are not working on IE11
20+
// assert.strictEqual(hasNumericValue('0b11'), true)
21+
// assert.strictEqual(hasNumericValue('0o11'), true)
2222
assert.strictEqual(hasNumericValue('123e-1'), true)
2323
assert.strictEqual(hasNumericValue(''), false)
2424
assert.strictEqual(hasNumericValue('foo'), false)

0 commit comments

Comments
 (0)