File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ function ConsoleReporter(options) {
23
23
yellow : '\x1B[33m' ,
24
24
none : '\x1B[0m'
25
25
} ,
26
- failedSuites = [ ] ;
26
+ failedSuites = [ ] ,
27
+ stackFilter = options . stackFilter || defaultStackFilter ;
27
28
28
29
if ( options . onComplete ) {
29
30
printDeprecation ( 'Passing in an onComplete function to the ConsoleReporter is deprecated.' ) ;
@@ -141,7 +142,7 @@ function ConsoleReporter(options) {
141
142
return newArr . join ( '\n' ) ;
142
143
}
143
144
144
- function filterStack ( stack ) {
145
+ function defaultStackFilter ( stack ) {
145
146
var filteredStack = stack . split ( '\n' ) . filter ( function ( stackLine ) {
146
147
return stackLine . indexOf ( jasmineCorePath ) === - 1 ;
147
148
} ) . join ( '\n' ) ;
@@ -162,7 +163,7 @@ function ConsoleReporter(options) {
162
163
printNewline ( ) ;
163
164
print ( indent ( 'Stack:' , 2 ) ) ;
164
165
printNewline ( ) ;
165
- print ( indent ( filterStack ( failedExpectation . stack ) , 4 ) ) ;
166
+ print ( indent ( stackFilter ( failedExpectation . stack ) , 4 ) ) ;
166
167
}
167
168
168
169
printNewline ( ) ;
You can’t perform that action at this time.
0 commit comments