Fix bug where before/afterAll were being executed in disabled suites.

This commit is contained in:
Zaven Muradyan
2016-10-23 20:40:58 -07:00
parent 0e9b9a11c3
commit c21bdaf35d
5 changed files with 28 additions and 30 deletions

View File

@@ -229,7 +229,7 @@ getJasmineRequireObj().Env = function(j$) {
reporter.suiteStarted(suite.result);
},
nodeComplete: function(suite, result) {
if (!suite.disabled) {
if (!suite.markedPending) {
clearResourcesForRunnable(suite.id);
}
currentlyExecutingSuites.pop();