Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a95c2cfe3f | ||
|
|
e2e2d1b343 |
@@ -612,7 +612,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
|
||||
while(suite) {
|
||||
befores = befores.concat(suite.beforeFns);
|
||||
afters = afters.concat(suite.afterFns.reverse());
|
||||
afters = afters.concat(suite.afterFns);
|
||||
|
||||
suite = suite.parentSuite;
|
||||
}
|
||||
@@ -3450,5 +3450,5 @@ getJasmineRequireObj().interface = function(jasmine, env) {
|
||||
};
|
||||
|
||||
getJasmineRequireObj().version = function() {
|
||||
return '2.4.0';
|
||||
return '2.4.1';
|
||||
};
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
#
|
||||
module Jasmine
|
||||
module Core
|
||||
VERSION = "2.4.0"
|
||||
VERSION = "2.4.1"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jasmine-core",
|
||||
"license": "MIT",
|
||||
"version": "2.4.0",
|
||||
"version": "2.4.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jasmine/jasmine.git"
|
||||
|
||||
11
release_notes/2.4.1.md
Normal file
11
release_notes/2.4.1.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Jasmine Core 2.4.1 Release Notes
|
||||
|
||||
## Changes
|
||||
|
||||
* Run `afterEach` in reverse order declared as before
|
||||
- Reverts [#908](https://github.com/jasmine/jasmine/issues/908)
|
||||
|
||||
|
||||
------
|
||||
|
||||
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
||||
@@ -169,7 +169,7 @@ describe("jasmine spec running", function () {
|
||||
env.execute();
|
||||
});
|
||||
|
||||
it("should run multiple befores and afters in the order they are declared", function(done) {
|
||||
it("should run multiple befores and afters ordered so functions declared later are treated as more specific", function(done) {
|
||||
var actions = [];
|
||||
|
||||
env.beforeEach(function () {
|
||||
@@ -217,10 +217,10 @@ describe("jasmine spec running", function () {
|
||||
"beforeEach1",
|
||||
"beforeEach2",
|
||||
"outer it 1",
|
||||
"afterEach1",
|
||||
"afterEach2",
|
||||
"runner afterEach1",
|
||||
"runner afterEach2"
|
||||
"afterEach1",
|
||||
"runner afterEach2",
|
||||
"runner afterEach1"
|
||||
];
|
||||
expect(actions).toEqual(expected);
|
||||
done();
|
||||
|
||||
@@ -110,7 +110,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
|
||||
while(suite) {
|
||||
befores = befores.concat(suite.beforeFns);
|
||||
afters = afters.concat(suite.afterFns.reverse());
|
||||
afters = afters.concat(suite.afterFns);
|
||||
|
||||
suite = suite.parentSuite;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user