enketo-xslt
Advanced tools
Comparing version 1.0.8 to 1.1.0
@@ -8,4 +8,4 @@ var xslModel, xslForm, | ||
// only read once | ||
xslModel = fs.readFileSync(xslModelPath); | ||
xslForm = fs.readFileSync(xslFormPath); | ||
xslModel = fs.readFileSync(xslModelPath, {encoding: 'utf8'}); | ||
xslForm = fs.readFileSync(xslFormPath, {encoding: 'utf8'}); | ||
@@ -12,0 +12,0 @@ module.exports = { |
{ | ||
"name": "enketo-xslt", | ||
"version": "1.0.8", | ||
"version": "1.1.0", | ||
"description": "XSL stylesheets for the Enketo XForm transformation", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"author": "Martijn van de Rijdt", | ||
"license": "Apache2" | ||
"license": "Apache-2.0" | ||
} |
@@ -7,4 +7,3 @@ var sheets = require("../index"), | ||
it('should return an xslForm sheet', function() { | ||
assert.equal(typeof sheets.xslForm, 'object'); | ||
assert.equal(sheets.xslForm instanceof Buffer, true); | ||
assert.equal(typeof sheets.xslForm, 'string'); | ||
assert.equal(sheets.xslForm.length > 0, true); | ||
@@ -14,4 +13,3 @@ }); | ||
it('should return an xslForm sheet', function() { | ||
assert.equal(sheets.xslModel instanceof Buffer, true); | ||
assert.equal(sheets.xslModel instanceof Buffer, true); | ||
assert.equal(typeof sheets.xslModel, 'string'); | ||
assert.equal(sheets.xslModel.length > 0, true); | ||
@@ -18,0 +16,0 @@ }); |
84933
24