Comparing version 0.2.2 to 0.3.0
@@ -10,2 +10,4 @@ /** | ||
binding.registerEXSLT(); | ||
/** | ||
@@ -12,0 +14,0 @@ * A compiled stylesheet. Do not call this constructor, instead use parse or parseFile. |
{ | ||
"name": "libxslt", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "Node.js bindings for libxslt compatible with libxmljs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -167,2 +167,15 @@ var fs = require('fs'); | ||
}); | ||
describe('libexslt bindings', function(){ | ||
it('should expose EXSLT functions', function(callback){ | ||
libxslt.parseFile('test/resources/min-value.xsl', function(err, stylesheet){ | ||
should.not.exist(err); | ||
stylesheet.applyToFile('test/resources/values.xml', function(err, result){ | ||
should.not.exist(err); | ||
result.should.match(/Minimum: 4/); | ||
callback(); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1647640
165
943