File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,9 @@ if (! options.watch) {
224
224
reporter . print = _reporter . print ;
225
225
226
226
files = args . map ( function ( a ) {
227
- return path . join ( process . cwd ( ) , a . replace ( fileExt , '' ) ) ;
227
+ return ( ! a . match ( / ^ \/ / ) )
228
+ ? path . join ( process . cwd ( ) , a . replace ( fileExt , '' ) )
229
+ : a . replace ( fileExt , '' ) ;
228
230
} ) ;
229
231
230
232
runSuites ( importSuites ( files ) , function ( results ) {
Original file line number Diff line number Diff line change @@ -350,6 +350,11 @@ vows.describe("Vows with teardowns").addBatch({
350
350
"And a final vow" : function ( topic ) {
351
351
assert . isTrue ( topic . flag ) ;
352
352
} ,
353
+ 'subcontext' : {
354
+ 'nested' : function ( _ , topic ) {
355
+ assert . isTrue ( topic . flag ) ;
356
+ }
357
+ } ,
353
358
teardown : function ( topic ) {
354
359
topic . flag = false ;
355
360
} ,
You can’t perform that action at this time.
0 commit comments