diff --git a/lib/report/html.js b/lib/report/html.js index ad8fdf04..1dab26d5 100644 --- a/lib/report/html.js +++ b/lib/report/html.js @@ -4,7 +4,7 @@ */ /*jshint maxlen: 300 */ -var handlebars = require('handlebars'), +var handlebars = require('handlebars').create(), defaults = require('./common/defaults'), path = require('path'), fs = require('fs'), @@ -496,7 +496,7 @@ Report.mix(HtmlReport, { return { fromParent: function (node) { var relativeName = cleanPath(node.relativeName); - + return node.kind === 'dir' ? relativeName + 'index.html' : relativeName + '.html'; }, ancestorHref: function (node, num) {