some cleanup
This commit is contained in:
parent
7ba77ea1f9
commit
a9cc872cc8
@ -23,7 +23,15 @@
|
||||
if (window.JHW) {
|
||||
jasmine.getEnv().addReporter(new jasmine.HeadlessConsoleReporter());
|
||||
} else {
|
||||
jasmine.getEnv().addReporter(new jasmine.HtmlReporter());
|
||||
types = [ 'HtmlReporter', 'TrivialReporter' ];
|
||||
|
||||
for (var i = 0, j = types.length; i < j; ++i) {
|
||||
var type = jasmine[types[i]]
|
||||
if (type) {
|
||||
jasmine.getEnv().addReporter(new type());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
jasmine.getEnv().execute();
|
||||
|
@ -11,7 +11,7 @@ class window.HeadlessReporterResult
|
||||
bestChoice = HeadlessReporterResult.findSpecLine(@splitName)
|
||||
output += " (#{bestChoice.file}:#{bestChoice.lineNumber})".foreground('blue') if bestChoice.file
|
||||
|
||||
JHW.stdout.puts "\n\n#{output}"
|
||||
JHW.stdout.puts "\n#{output}"
|
||||
for result in @results
|
||||
output = result.message.foreground('red')
|
||||
if result.lineNumber
|
||||
|
@ -15,7 +15,7 @@
|
||||
if (bestChoice.file) {
|
||||
output += (" (" + bestChoice.file + ":" + bestChoice.lineNumber + ")").foreground('blue');
|
||||
}
|
||||
JHW.stdout.puts("\n\n" + output);
|
||||
JHW.stdout.puts("\n" + output);
|
||||
_ref = this.results;
|
||||
_results = [];
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user