mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
12 lines
346 B
JavaScript
12 lines
346 B
JavaScript
const assert = require('assert')
|
|
const error = require('../../src/error/index')
|
|
|
|
describe('index.js', function () {
|
|
it('should contain error factory functions', function () {
|
|
assert(Array.isArray(error))
|
|
assert(error[0].name, 'ArgumentsError')
|
|
assert(error[1].name, 'DimensionError')
|
|
assert(error[2].name, 'IndexError')
|
|
})
|
|
})
|