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