X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0a765eadd374d46fc8f4ebe88f9f97a4d8fae622..f4828b331965f0eae8508750aea836d8aa81a8cd:/src/smartxml/smartxml.test.js diff --git a/src/smartxml/smartxml.test.js b/src/smartxml/smartxml.test.js index bfe06ad..41742d9 100644 --- a/src/smartxml/smartxml.test.js +++ b/src/smartxml/smartxml.test.js @@ -836,15 +836,9 @@ describe('smartxml', function() { textNode = doc.root.contents()[0]; extension = {}; - expect(function() { - elementNode.testTransformation(); - }).to.throw(Error); - expect(function() { - textNode.testTransformation(); - }).to.throw(Error); - expect(function() { - doc.testTransformation(); - }).to.throw(Error); + expect(elementNode.testTransformation).to.be.undefined; + expect(textNode.testTransformation).to.be.undefined; + expect(doc.testTransformation).to.be.undefined; expect(doc.testMethod).to.be.undefined; expect(elementNode.testMethod).to.be.undefined;