mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.
15 lines (10 loc) • 357 B
JavaScript
// test error messages for deprecated functions
var assert = require('assert');
var math = require('../index');
describe('deprecated stuff', function() {
it('should throw a deprecation error when using UpdateNode', function () {
assert.throws(function () {
new math.expression.node.UpdateNode();
}, /UpdateNode is deprecated/);
})
});