mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
17 lines
401 B
JavaScript
17 lines
401 B
JavaScript
const assert = require('assert')
|
|
const version = require('../package.json').version
|
|
|
|
describe('lib', function () {
|
|
it('should load lib/index.js', function () {
|
|
const math = require('../index')
|
|
|
|
assert.strictEqual(math.add(2, 3), 5)
|
|
})
|
|
|
|
it('should have the correct version number', function () {
|
|
const math = require('../index')
|
|
|
|
assert.strictEqual(math.version, version)
|
|
})
|
|
})
|