fix(test_lib): fixes nested beforeEach.
This commit is contained in:
parent
28c2b8f432
commit
826af401a9
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue