xdescribe marks pending, plus associated tests.

This commit is contained in:
Liam Wall
2015-05-28 22:06:04 +01:00
parent 4be2079482
commit 7bfc4c0a45
4 changed files with 115 additions and 10 deletions

View File

@@ -42,6 +42,10 @@ getJasmineRequireObj().Suite = function(j$) {
this.disabled = true;
};
Suite.prototype.pend = function(message) {
this.markedPending = true;
};
Suite.prototype.beforeEach = function(fn) {
this.beforeFns.unshift(fn);
};
@@ -67,6 +71,10 @@ getJasmineRequireObj().Suite = function(j$) {
return 'disabled';
}
if (this.markedPending) {
return 'pending';
}
if (this.result.failedExpectations.length > 0) {
return 'failed';
} else {