Skip afterEach fns in nested suites when a beforeEach fn errors
This matches the behavior of beforeAll errors. * #1533
This commit is contained in:
@@ -105,7 +105,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
||||
};
|
||||
|
||||
Suite.prototype.beforeEach = function(fn) {
|
||||
this.beforeFns.unshift(fn);
|
||||
this.beforeFns.unshift({ ...fn, suite: this });
|
||||
};
|
||||
|
||||
Suite.prototype.beforeAll = function(fn) {
|
||||
@@ -113,7 +113,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
||||
};
|
||||
|
||||
Suite.prototype.afterEach = function(fn) {
|
||||
this.afterFns.unshift(fn);
|
||||
this.afterFns.unshift({ ...fn, suite: this });
|
||||
};
|
||||
|
||||
Suite.prototype.afterAll = function(fn) {
|
||||
|
||||
Reference in New Issue
Block a user