Sha256: b9d2c26a773a28285ee1cb127f6dc0c8f2bc719b33064a0768863ab25ff967e3

Contents?: true

Size: 951 Bytes

Versions: 10

Compression:

Stored size: 951 Bytes

Contents

var sys = require('sys');

var options = { tail: '\n' };
var console = require('../../vows/console');
var stylize = console.stylize,
    puts = console.puts(options);
//
// Console reporter
//

this.name = 'spec';
this.setStream = function (s) {
    options.stream = s;
};
this.report = function (data) {
    var event = data[1];

    buffer = [];

    switch (data[0]) {
        case 'subject':
            puts('\n♢ ' + stylize(event, 'bold') + '\n');
            break;
        case 'context':
            puts(console.contextText(event));
            break;
        case 'vow':
            puts(console.vowText(event));
            break;
        case 'end':
            sys.print('\n');
            break;
        case 'finish':
            puts(console.result(event).join('\n'));
            break;
        case 'error':
            puts(console.error(event));
            break;
    }
};

this.print = function (str) {
    sys.print(str);
};

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vulcan-0.3.0 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.1.6 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.1.5 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.1.4 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.1.3 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.1.2 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.1.1 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.1.0 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.0.3 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js
vulcan-0.0.2 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js