Sha256: 77367dec40d37f125b83b440604530070a8cbca0091b3c5594b806ddb5c2ec47
Contents?: true
Size: 1.09 KB
Versions: 14
Compression:
Stored size: 1.09 KB
Contents
'use strict'; var startsWith = require('es5-ext/string/#/starts-with') , spawn = require('child_process').spawn , pg = __dirname + '/__playground'; module.exports = { "": function (a, d) { var t = spawn(pg + '/throbber.js') , out = [], err = ''; t.stdout.on('data', function (data) { out.push(data); }); t.stderr.on('data', function (data) { err += data; }); t.on('exit', function () { a.ok(out.length > 4, "Interval"); a(startsWith.call(out.join(""), "START-\b\\\b|\b/\b-\b"), true, "Output"); a(err, "", "No stderr output"); d(); }); }, "Formatted": function (a, d) { var t = spawn(pg + '/throbber.formatted.js') , out = [], err = ''; t.stdout.on('data', function (data) { out.push(data); }); t.stderr.on('data', function (data) { err += data; }); t.on('exit', function () { a.ok(out.length > 4, "Interval"); a(startsWith.call(out.join(""), "START\x1b[31m-\x1b[39m\x1b[31m\b\\\x1b" + "[39m\x1b[31m\b|\x1b[39m\x1b[31m\b/\x1b[39m\x1b[31m\b-\x1b[39m"), true, "Output"); a(err, "", "No stderr output"); d(); }); } };
Version data entries
14 entries across 7 versions & 1 rubygems