mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
12 lines
370 B
JavaScript
12 lines
370 B
JavaScript
// test error messages for deprecated functions
|
|
const assert = require('assert')
|
|
const math = require('../src/main')
|
|
|
|
describe('deprecated stuff', function () {
|
|
it('should throw a deprecation error when using UpdateNode', function () {
|
|
assert.throws(function () {
|
|
console.log(new math.expression.node.UpdateNode())
|
|
}, /UpdateNode is deprecated/)
|
|
})
|
|
})
|