Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (lines[lines.length - 1] === '') {
lines.pop()
}
var metadata =
{ stylesheets:
[ '/stylesheets/mdns.css'
, '/stylesheets/build_status.css'
]
, scripts: []
, title: 'Test Coverage of ' + name
};
var locals = { lines: lines
, coverage: coverage
, path: name.split('/')
, escape: require('ejs/lib/utils').escape
, counts: found_and_hit(coverage, functions)
};
locals = obj.union(locals, view.helpers(metadata, {outputDir: pagedir, dst: dst}));
metadata.body = ejs.render(meta.source_template.toString(), locals);
metadata.path = view.getPathHelper({outputDir: pagedir, dst: dst});
var html = ejs.render(meta.layout.toString(), metadata);
cb(null, html);
}
if (lines[lines.length - 1] === '') {
lines.pop()
}
var metadata =
{ stylesheets:
[ '/stylesheets/mdns.css'
, '/stylesheets/build_status.css'
]
, scripts: []
, title: 'Test Coverage of ' + name
};
var locals = { lines: lines
, coverage: coverage
, path: name.split('/')
, escape: require('ejs/lib/utils').escape
, counts: found_and_hit(coverage, functions)
};
locals = obj.union(locals, view.helpers(metadata, {outputDir: pagedir, dst: dst}));
metadata.body = ejs.render(meta.source_template.toString(), locals);
metadata.path = view.getPathHelper({outputDir: pagedir, dst: dst});
var html = ejs.render(meta.layout.toString(), metadata);
cb(null, html);
}