From f4828b331965f0eae8508750aea836d8aa81a8cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 6 Dec 2013 10:10:50 +0100 Subject: [PATCH 1/1] simpler assertions after moving transformations into object namespace --- src/smartxml/smartxml.test.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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; -- 2.20.1