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