mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
12 lines
357 B
JavaScript
12 lines
357 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 () {
|
|
new math.expression.node.UpdateNode()
|
|
}, /UpdateNode is deprecated/)
|
|
})
|
|
})
|