first (naive) pass at beforeAll/afterAll

This commit is contained in:
Gregg Van Hove and Sheel Choksi
2014-03-03 09:26:39 -08:00
parent 9d1e92f5e2
commit ec5695acc1
5 changed files with 209 additions and 7 deletions

View File

@@ -324,10 +324,18 @@ getJasmineRequireObj().Env = function(j$) {
currentSuite.beforeEach(beforeEachFunction);
};
this.beforeAll = function(beforeAllFunction) {
currentSuite.beforeAll(beforeAllFunction);
};
this.afterEach = function(afterEachFunction) {
currentSuite.afterEach(afterEachFunction);
};
this.afterAll = function(afterAllFunction) {
currentSuite.afterAll(afterAllFunction);
};
this.pending = function() {
throw j$.Spec.pendingSpecExceptionMessage;
};