coveraje/coveraje — Issue #17: beautify: true doesn't really beautify
Author: goatslacker
Created: 2012-02-18 22:04:57+00:00
State: open

I think you're overriding the user's option in lib/core.js

Sample code:

`foo.js`

var
b = 10,
c = (
20,
function (x) { return x + 100},
function () { return arguments[0]}
);

a = b + c({x: 10}).x;

`cover.js`

var fs = require('fs');
var code = fs.readFileSync('./foo.js').toString();
var coverage = require('coveraje').coveraje;

coverage.cover(code, function (context, instance) {
console.log(instance.getCodes());
return coverage.runHelper.createEmitter(function (event) {
event.complete();
});
}, { colorizeShell: false, beautify: true }, function (results) {
// console.log(results);
console.log('Done.');
});