Sha256: 6d44a25a8a973e3adbfed78f1a57e068258bf1c19e5b0dfda3596d06ad81dfdd

Contents?: true

Size: 963 Bytes

Versions: 10

Compression:

Stored size: 963 Bytes

Contents

var sys = require('sys');

var options = {};
var console = require('../../vows/console');
var spec = require('../../vows/reporters/spec');
var stylize = console.stylize,
    puts = console.puts(options);
//
// Console reporter
//
var lastContext;

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

    switch (data[0]) {
        case 'vow':
            if (['honored', 'pending'].indexOf(event.status) === -1) {
                if (lastContext !== event.context) {
                    lastContext = event.context;
                    puts(console.contextText(event.context));
                }
                puts(console.vowText(event));
                puts('');
            }
            break;
        case 'error':
            puts(console.error(event));
            break;
    }
};
this.print = function (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/watch.js
vulcan-0.1.6 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
vulcan-0.1.5 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
vulcan-0.1.4 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
vulcan-0.1.3 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
vulcan-0.1.2 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
vulcan-0.1.1 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
vulcan-0.1.0 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
vulcan-0.0.3 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js
vulcan-0.0.2 server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js