mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
var assert = require('assert');
|
|
var error = require('../../lib/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');
|
|
});
|
|
|
|
}); |