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