From: Aleksander Ɓukasz Date: Fri, 6 Dec 2013 09:10:50 +0000 (+0100) Subject: simpler assertions after moving transformations into object namespace X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/f4828b331965f0eae8508750aea836d8aa81a8cd simpler assertions after moving transformations into object namespace --- 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;