File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ Test.prototype.end = function (err) {
182
182
Test . prototype . _end = function ( err ) {
183
183
var self = this ;
184
184
185
- if ( ! this . _cb && ! this . _todo ) this . fail ( '# TODO ' + this . name ) ;
185
+ if ( ! this . _cb && ! this . _todo && ! this . _skip ) this . fail ( '# TODO ' + this . name ) ;
186
186
187
187
if ( this . _progeny . length ) {
188
188
var t = this . _progeny . shift ( ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ tap.test('no callback', function (tt) {
15
15
16
16
tt . same ( body , [
17
17
'TAP version 13' ,
18
+ '# group' ,
18
19
'# No callback.' ,
19
20
'not ok 1 # TODO No callback.' ,
20
21
' ---' ,
@@ -23,6 +24,8 @@ tap.test('no callback', function (tt) {
23
24
' Error: # TODO No callback.' ,
24
25
' [... stack stripped ...]' ,
25
26
' ...' ,
27
+ '# SKIP No callback, skipped.' ,
28
+ '# TODO No callback, todo.' ,
26
29
'' ,
27
30
'1..1' ,
28
31
'# tests 1' ,
@@ -33,5 +36,13 @@ tap.test('no callback', function (tt) {
33
36
34
37
test . createStream ( ) . pipe ( concat ( tc ) ) ;
35
38
36
- test ( 'No callback.' ) ;
39
+ test ( 'group' , function ( t ) {
40
+ t . plan ( 3 ) ;
41
+
42
+ t . test ( 'No callback.' ) ;
43
+
44
+ t . test ( 'No callback, skipped.' , { skip : true } ) ;
45
+
46
+ t . test ( 'No callback, todo.' , { todo : true } ) ;
47
+ } ) ;
37
48
} ) ;
You can’t perform that action at this time.
0 commit comments