mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
19 lines
474 B
JavaScript
19 lines
474 B
JavaScript
const assert = require('assert')
|
|
const version = require('../package.json').version
|
|
|
|
describe('dist', function () {
|
|
it('should load dist/math.js', function () {
|
|
const math = require('../dist/math.js')
|
|
|
|
assert.equal(math.add(2, 3), 5)
|
|
assert.equal(math.version, version)
|
|
})
|
|
|
|
it('should load dist/math.min.js', function () {
|
|
const math = require('../dist/math.min.js')
|
|
|
|
assert.equal(math.add(2, 3), 5)
|
|
assert.equal(math.version, version)
|
|
})
|
|
})
|