Comparing version 1.2.0 to 1.2.1
@@ -12,1 +12,5 @@ var Spec = require('./Spec'); | ||
}; | ||
exports.Spec = Spec; | ||
exports.Production = require('./Production.js'); | ||
exports.Utils = utils; |
@@ -21,3 +21,3 @@ module.exports = RHS; | ||
this.node.insertBefore(cs, this.node.children[0]); | ||
this.node.insertBefore(cs, this.node.childNodes[0]); | ||
} | ||
@@ -24,0 +24,0 @@ |
{ | ||
"name": "ecmarkup", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.", | ||
@@ -36,8 +36,9 @@ "main": "lib/ecmarkup.js", | ||
"ecmarkdown": "^2.0.2", | ||
"highlight.js": "^8.4.0", | ||
"highlight.js": "^8.6.0", | ||
"jsdom": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"diff": "^1.4.0", | ||
"mocha": "^1.21.4" | ||
} | ||
} |
@@ -5,2 +5,3 @@ var fs = require('fs'); | ||
var readFile = Promise.promisify(fs.readFile); | ||
var diff = require('diff'); | ||
@@ -16,5 +17,8 @@ var build = require('../lib/ecmarkup').build; | ||
}).then(function(contents) { | ||
assert.equal(contents, fs.readFileSync(testPath + '.baseline', 'utf-8')); | ||
var str = fs.readFileSync(testPath + '.baseline', 'utf-8').toString(); | ||
if(contents !== str) { | ||
throw new Error(diff.createPatch("test.html", contents, str)) | ||
} | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
81260
38
1094
2
Updatedhighlight.js@^8.6.0