mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
24 lines
684 B
JavaScript
24 lines
684 B
JavaScript
// Only use native node.js API's and references to ./lib here, this file is not transpiled!
|
|
const assert = require('assert')
|
|
const version = require('../../package.json').version
|
|
|
|
describe('lib', function () {
|
|
it('should load lib/mainAny.js', function () {
|
|
const math = require('../../lib/entry/mainAny')
|
|
|
|
assert.strictEqual(math.add(2, 3), 5)
|
|
})
|
|
|
|
it('should load lib/mainNumber.js', function () {
|
|
const math = require('../../lib/entry/mainNumber')
|
|
|
|
assert.strictEqual(math.add(2, 3), 5)
|
|
})
|
|
|
|
it('should have the correct version number', function () {
|
|
const math = require('../../lib/entry/mainAny')
|
|
|
|
assert.strictEqual(math.version, version)
|
|
})
|
|
})
|