From 826af401a96985f24ed710a63d56d98319c92bae Mon Sep 17 00:00:00 2001 From: Rado Kirov Date: Tue, 19 May 2015 23:13:44 -0700 Subject: [PATCH] fix(test_lib): fixes nested beforeEach. --- modules/angular2/src/test_lib/test_lib.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/angular2/src/test_lib/test_lib.es6 b/modules/angular2/src/test_lib/test_lib.es6 index 553b661b98..b977794e23 100644 --- a/modules/angular2/src/test_lib/test_lib.es6 +++ b/modules/angular2/src/test_lib/test_lib.es6 @@ -53,7 +53,7 @@ class BeforeEachRunner { } run(injector) { - if (this._parent) this._parent.run(); + if (this._parent) this._parent.run(injector); this._fns.forEach((fn) => fn.execute(injector)); } } @@ -130,7 +130,6 @@ function _it(jsmFn, name, fn) { }); var injector = createTestInjector([...testBindings, completerBinding]); - runner.run(injector); if (!(fn instanceof FunctionWithParamTokens)) {