first (naive) pass at beforeAll/afterAll
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user