afterEach behavior
This commit is contained in:
@@ -558,7 +558,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
|
||||
while(suite) {
|
||||
befores = befores.concat(suite.beforeFns);
|
||||
afters = afters.concat(suite.afterFns);
|
||||
afters = afters.concat(suite.afterFns.reverse());
|
||||
|
||||
suite = suite.parentSuite;
|
||||
}
|
||||
|
||||
@@ -217,10 +217,10 @@ describe("jasmine spec running", function () {
|
||||
"beforeEach1",
|
||||
"beforeEach2",
|
||||
"outer it 1",
|
||||
"afterEach2",
|
||||
"afterEach1",
|
||||
"runner afterEach2",
|
||||
"runner afterEach1"
|
||||
"afterEach2",
|
||||
"runner afterEach1",
|
||||
"runner afterEach2"
|
||||
];
|
||||
expect(actions).toEqual(expected);
|
||||
done();
|
||||
|
||||
@@ -108,7 +108,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
|
||||
while(suite) {
|
||||
befores = befores.concat(suite.beforeFns);
|
||||
afters = afters.concat(suite.afterFns);
|
||||
afters = afters.concat(suite.afterFns.reverse());
|
||||
|
||||
suite = suite.parentSuite;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user