dockerized_openAger/nodered/rootfs/data/node_modules/mathjs/test/deprecated.test.js

15 lines
357 B
JavaScript
Raw Normal View History

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