File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ function Test(title, fn) {
26
26
this . assertCount = 0 ;
27
27
this . planCount = null ;
28
28
this . duration = null ;
29
- this . context = { } ;
30
29
31
30
// test type, can be: test, hook, eachHook
32
31
this . type = 'test' ;
Original file line number Diff line number Diff line change @@ -273,13 +273,13 @@ test('shared context', function (t) {
273
273
var runner = new Runner ( ) ;
274
274
275
275
runner . addBeforeHook ( function ( a ) {
276
- a . is ( a . context . arr , undefined ) ;
277
- a . context . arr = [ ] ;
276
+ a . is ( a . context , undefined ) ;
277
+ a . context = { arr : [ ] } ;
278
278
a . end ( ) ;
279
279
} ) ;
280
280
281
281
runner . addAfterHook ( function ( a ) {
282
- a . is ( a . context . arr , undefined ) ;
282
+ a . is ( a . context , undefined ) ;
283
283
a . end ( ) ;
284
284
} ) ;
285
285
You can’t perform that action at this time.
0 commit comments