fix(test_lib): fixes nested beforeEach.

This commit is contained in:
Rado Kirov 2015-05-19 23:13:44 -07:00
parent 28c2b8f432
commit 826af401a9
1 changed files with 1 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class BeforeEachRunner {
} }
run(injector) { run(injector) {
if (this._parent) this._parent.run(); if (this._parent) this._parent.run(injector);
this._fns.forEach((fn) => fn.execute(injector)); this._fns.forEach((fn) => fn.execute(injector));
} }
} }
@ -130,7 +130,6 @@ function _it(jsmFn, name, fn) {
}); });
var injector = createTestInjector([...testBindings, completerBinding]); var injector = createTestInjector([...testBindings, completerBinding]);
runner.run(injector); runner.run(injector);
if (!(fn instanceof FunctionWithParamTokens)) { if (!(fn instanceof FunctionWithParamTokens)) {