Merge branch 'beforeall-in-xdescribe' of https://github.com/voithos/jasmine into voithos-beforeall-in-xdescribe

- Merges #1225 from @voithos
- Fixes #1175
This commit is contained in:
Gregg Van Hove
2016-12-02 09:47:01 -08:00
6 changed files with 30 additions and 41 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();

View File

@@ -12,7 +12,6 @@ getJasmineRequireObj().Suite = function(j$) {
this.afterFns = [];
this.beforeAllFns = [];
this.afterAllFns = [];
this.disabled = false;
this.children = [];
@@ -38,10 +37,6 @@ getJasmineRequireObj().Suite = function(j$) {
return fullName.join(' ');
};
Suite.prototype.disable = function() {
this.disabled = true;
};
Suite.prototype.pend = function(message) {
this.markedPending = true;
};
@@ -67,10 +62,6 @@ getJasmineRequireObj().Suite = function(j$) {
};
Suite.prototype.status = function() {
if (this.disabled) {
return 'disabled';
}
if (this.markedPending) {
return 'pending';
}
@@ -83,7 +74,7 @@ getJasmineRequireObj().Suite = function(j$) {
};
Suite.prototype.isExecutable = function() {
return !this.disabled;
return !this.markedPending;
};
Suite.prototype.canBeReentered = function() {