style rf
This commit is contained in:
parent
b9cbd3c5a0
commit
4e5083d570
@ -1,19 +1,11 @@
|
||||
jasmine.TrivialConsoleReporter = function(print) {
|
||||
|
||||
var ansi = {
|
||||
green: '\033[32m',
|
||||
red: '\033[31m',
|
||||
yellow: '\033[33m',
|
||||
none: '\033[0m'
|
||||
};
|
||||
//inspired by mhevery's jasmine-node reporter
|
||||
//https://github.com/mhevery/jasmine-node
|
||||
|
||||
var defaultColumnsPerLine = 50;
|
||||
|
||||
var language = {
|
||||
spec:"spec",
|
||||
assertion:"assertion",
|
||||
failure:"failure"
|
||||
};
|
||||
var defaultColumnsPerLine = 50,
|
||||
ansi = { green: '\033[32m', red: '\033[31m', yellow: '\033[33m', none: '\033[0m' },
|
||||
language = { spec:"spec", assertion:"assertion", failure:"failure" };
|
||||
|
||||
function coloredStr(color, str) { return ansi[color] + str + ansi.none; }
|
||||
|
||||
@ -35,7 +27,6 @@ jasmine.TrivialConsoleReporter = function(print) {
|
||||
return arr;
|
||||
}
|
||||
|
||||
|
||||
function indent(str, spaces) { var lines = str.split("\n");
|
||||
var newArr = []
|
||||
for(var i=0; i<lines.length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user