File tree 2 files changed +15
-8
lines changed 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ function ConsoleReporter() {
211
211
//
212
212
// Same logic is used by jasmine.HtmlReporter, see https://github.com/jasmine/jasmine/blob/master/src/html/HtmlReporter.js
213
213
if ( result . failedExpectations . length === 0 &&
214
- ( ! result . passedExpectations || result . passedExpectations . length === 0 ) ) {
214
+ result . passedExpectations . length === 0 ) {
215
215
printNewline ( ) ;
216
216
print ( indent ( 'Message:' , 2 ) ) ;
217
217
printNewline ( ) ;
Original file line number Diff line number Diff line change @@ -206,7 +206,8 @@ describe("ConsoleReporter", function() {
206
206
actual : true ,
207
207
stack : fakeStack
208
208
}
209
- ]
209
+ ] ,
210
+ passedExpectations : [ ]
210
211
} ) ;
211
212
212
213
this . out . clear ( ) ;
@@ -255,7 +256,8 @@ describe("ConsoleReporter", function() {
255
256
actual : true ,
256
257
stack : fakeStack
257
258
}
258
- ]
259
+ ] ,
260
+ passedExpectations : [ ]
259
261
} ) ;
260
262
261
263
this . out . clear ( ) ;
@@ -286,7 +288,8 @@ describe("ConsoleReporter", function() {
286
288
actual : true ,
287
289
stack : fakeStack
288
290
}
289
- ]
291
+ ] ,
292
+ passedExpectations : [ ]
290
293
} ) ;
291
294
292
295
this . out . clear ( ) ;
@@ -319,7 +322,8 @@ describe("ConsoleReporter", function() {
319
322
actual : true ,
320
323
stack : undefined
321
324
}
322
- ]
325
+ ] ,
326
+ passedExpectations : [ ]
323
327
} ) ;
324
328
325
329
this . out . clear ( ) ;
@@ -354,7 +358,8 @@ describe("ConsoleReporter", function() {
354
358
actual : true ,
355
359
stack : fakeStack
356
360
}
357
- ]
361
+ ] ,
362
+ passedExpectations : [ ]
358
363
} ) ;
359
364
360
365
this . out . clear ( ) ;
@@ -421,7 +426,8 @@ describe("ConsoleReporter", function() {
421
426
status : "failed" ,
422
427
description : "with a failing spec" ,
423
428
fullName : "A suite with a failing spec that has no expectations" ,
424
- failedExpectations : [ ]
429
+ failedExpectations : [ ] ,
430
+ passedExpectations : [ ]
425
431
} ) ;
426
432
427
433
this . out . clear ( ) ;
@@ -449,7 +455,8 @@ describe("ConsoleReporter", function() {
449
455
expected : false ,
450
456
actual : true ,
451
457
stack : undefined
452
- } ]
458
+ } ] ,
459
+ passedExpectations : [ ]
453
460
} ) ;
454
461
455
462
this . out . clear ( ) ;
You can’t perform that action at this time.
0 commit comments