File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ module.exports = function (suite) {
102
102
*/
103
103
104
104
context . xit = context . xspecify = context . it . skip = function ( title ) {
105
- context . it ( title ) ;
105
+ return context . it ( title ) ;
106
106
} ;
107
107
108
108
/**
Original file line number Diff line number Diff line change @@ -40,3 +40,27 @@ describe('pending suite', function () {
40
40
} ) ;
41
41
} ) ;
42
42
} ) ;
43
+
44
+ describe ( 'pending tests' , function ( ) {
45
+ it . skip ( 'should not run' , function ( ) {
46
+ expect ( 1 + 1 ) . to . equal ( 3 ) ;
47
+ } ) ;
48
+ } ) ;
49
+
50
+ describe ( 'setting timeout by appending it to test' , function ( ) {
51
+ var runningTest = it ( 'enables users to call timeout on pending tests' , function ( ) {
52
+ expect ( 1 + 1 ) . to . equal ( 2 ) ;
53
+ } ) . timeout ( 1003 ) ;
54
+
55
+ var skippedTest = xit ( 'enables users to call timeout on pending tests' , function ( ) {
56
+ expect ( 1 + 1 ) . to . equal ( 3 ) ;
57
+ } ) . timeout ( 1002 ) ;
58
+
59
+ it ( 'sets timeout on pending tests' , function ( ) {
60
+ expect ( skippedTest . _timeout ) . to . equal ( 1002 ) ;
61
+ } ) ;
62
+
63
+ it ( 'sets timeout on running tests' , function ( ) {
64
+ expect ( runningTest . _timeout ) . to . equal ( 1003 ) ;
65
+ } ) ;
66
+ } ) ;
You can’t perform that action at this time.
0 commit comments