File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ Hook.prototype.error = function(err) {
62
62
*/
63
63
Hook . prototype . serialize = function serialize ( ) {
64
64
return {
65
- $$isPending : this . isPending ( ) ,
65
+ $$currentRetry : this . currentRetry ( ) ,
66
+ $$fullTitle : this . fullTitle ( ) ,
67
+ $$isPending : Boolean ( this . isPending ( ) ) ,
66
68
$$titlePath : this . titlePath ( ) ,
67
69
ctx :
68
70
this . ctx && this . ctx . currentTest
@@ -73,9 +75,13 @@ Hook.prototype.serialize = function serialize() {
73
75
}
74
76
}
75
77
: { } ,
78
+ duration : this . duration ,
79
+ file : this . file ,
76
80
parent : {
81
+ $$fullTitle : this . parent . fullTitle ( ) ,
77
82
[ MOCHA_ID_PROP_NAME ] : this . parent . id
78
83
} ,
84
+ state : this . state ,
79
85
title : this . title ,
80
86
type : this . type ,
81
87
[ MOCHA_ID_PROP_NAME ] : this . id
Original file line number Diff line number Diff line change @@ -594,10 +594,10 @@ Suite.prototype.serialize = function serialize() {
594
594
return {
595
595
_bail : this . _bail ,
596
596
$$fullTitle : this . fullTitle ( ) ,
597
- $$isPending : this . isPending ( ) ,
597
+ $$isPending : Boolean ( this . isPending ( ) ) ,
598
598
root : this . root ,
599
599
title : this . title ,
600
- id : this . id ,
600
+ [ MOCHA_ID_PROP_NAME ] : this . id ,
601
601
parent : this . parent ? { [ MOCHA_ID_PROP_NAME ] : this . parent . id } : null
602
602
} ;
603
603
} ;
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ Test.prototype.serialize = function serialize() {
92
92
return {
93
93
$$currentRetry : this . _currentRetry ,
94
94
$$fullTitle : this . fullTitle ( ) ,
95
- $$isPending : this . pending ,
95
+ $$isPending : Boolean ( this . pending ) ,
96
96
$$retriedTest : this . _retriedTest || null ,
97
97
$$slow : this . _slow ,
98
98
$$titlePath : this . titlePath ( ) ,
You can’t perform that action at this time.
0 commit comments