mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Fixed #1389: one unit test failing on Windows
This commit is contained in:
parent
e8b8a36aab
commit
6f92201e18
@ -40,7 +40,8 @@ describe('createUnit', function () {
|
||||
})
|
||||
|
||||
it('should override units', function () {
|
||||
math.eval('createUnit({"bar": 1e12 Pa}, {"override":true})')
|
||||
assert.strictEqual(math.eval('1 bar to Pa').toString(), '1e+12 Pa')
|
||||
const math2 = math.create()
|
||||
math2.eval('createUnit({"bar": 1e12 Pa}, {"override":true})')
|
||||
assert.strictEqual(math2.eval('1 bar to Pa').toString(), '1e+12 Pa')
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user