@@ -70,7 +70,7 @@ test('passing test and duration less than threshold', t => {
70
70
const actualOutput = reporter . test ( {
71
71
title : 'passed' ,
72
72
duration : 90
73
- } , createRunStatus ( ) ) ;
73
+ } ) ;
74
74
75
75
const expectedOutput = ' ' + colors . green ( figures . tick ) + ' passed' ;
76
76
@@ -84,32 +84,21 @@ test('passing test and duration greater than threshold', t => {
84
84
const actualOutput = reporter . test ( {
85
85
title : 'passed' ,
86
86
duration : 150
87
- } , createRunStatus ( ) ) ;
87
+ } ) ;
88
88
89
89
const expectedOutput = ' ' + colors . green ( figures . tick ) + ' passed' + colors . dimGray ( ' (150ms)' ) ;
90
90
91
91
t . is ( actualOutput , expectedOutput ) ;
92
92
t . end ( ) ;
93
93
} ) ;
94
94
95
- test ( 'don\'t display test title if there is only one anonymous test' , t => {
96
- const reporter = createReporter ( ) ;
97
-
98
- const output = reporter . test ( {
99
- title : '[anonymous]'
100
- } , createRunStatus ( ) ) ;
101
-
102
- t . is ( output , undefined ) ;
103
- t . end ( ) ;
104
- } ) ;
105
-
106
95
test ( 'known failure test' , t => {
107
96
const reporter = createReporter ( ) ;
108
97
109
98
const actualOutput = reporter . test ( {
110
99
title : 'known failure' ,
111
100
failing : true
112
- } , createRunStatus ( ) ) ;
101
+ } ) ;
113
102
114
103
const expectedOutput = ' ' + colors . red ( figures . tick ) + ' ' + colors . red ( 'known failure' ) ;
115
104
@@ -125,7 +114,7 @@ test('failing test', t => {
125
114
error : {
126
115
message : 'assertion failed'
127
116
}
128
- } , createRunStatus ( ) ) ;
117
+ } ) ;
129
118
130
119
const expectedOutput = ' ' + colors . red ( figures . cross ) + ' failed ' + colors . red ( 'assertion failed' ) ;
131
120
@@ -139,7 +128,7 @@ test('skipped test', t => {
139
128
const actualOutput = reporter . test ( {
140
129
title : 'skipped' ,
141
130
skip : true
142
- } , createRunStatus ( ) ) ;
131
+ } ) ;
143
132
144
133
const expectedOutput = ' ' + colors . yellow ( '- skipped' ) ;
145
134
@@ -154,7 +143,7 @@ test('todo test', t => {
154
143
title : 'todo' ,
155
144
skip : true ,
156
145
todo : true
157
- } , createRunStatus ( ) ) ;
146
+ } ) ;
158
147
159
148
const expectedOutput = ' ' + colors . blue ( '- todo' ) ;
160
149
0 commit comments