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