15 lines
357 B
JavaScript
15 lines
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/);
|
|
|
|
})
|
|
});
|