15 lines
357 B
JavaScript
Raw Normal View History

2020-10-17 18:42:50 +02:00
// 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/);
})
});