mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
12 lines
330 B
JavaScript
12 lines
330 B
JavaScript
import assert from 'assert'
|
|
import error from '../../src/error/index'
|
|
|
|
describe('index.js', function () {
|
|
it('should contain error factory functions', function () {
|
|
assert(Array.isArray(error))
|
|
assert(error[0].fn, 'ArgumentsError')
|
|
assert(error[1].fn, 'DimensionError')
|
|
assert(error[2].fn, 'IndexError')
|
|
})
|
|
})
|