mathjs/test/error/index.test.js
2018-10-31 21:18:51 +01:00

12 lines
336 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].name, 'ArgumentsError')
assert(error[1].name, 'DimensionError')
assert(error[2].name, 'IndexError')
})
})