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) {
2626 this . assertCount = 0 ;
2727 this . planCount = null ;
2828 this . duration = null ;
29- this . context = { } ;
3029
3130 // test type, can be: test, hook, eachHook
3231 this . type = 'test' ;
Original file line number Diff line number Diff line change @@ -273,13 +273,13 @@ test('shared context', function (t) {
273273 var runner = new Runner ( ) ;
274274
275275 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 : [ ] } ;
278278 a . end ( ) ;
279279 } ) ;
280280
281281 runner . addAfterHook ( function ( a ) {
282- a . is ( a . context . arr , undefined ) ;
282+ a . is ( a . context , undefined ) ;
283283 a . end ( ) ;
284284 } ) ;
285285
You can’t perform that action at this time.
0 commit comments