{"action":"created","issue":{"url":"https://api.github.com/repos/kensho/ng-describe/issues/81","labels_url":"https://api.github.com/repos/kensho/ng-describe/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/kensho/ng-describe/issues/81/comments","events_url":"https://api.github.com/repos/kensho/ng-describe/issues/81/events","html_url":"https://github.com/kensho/ng-describe/issues/81","id":117172074,"number":81,"title":"afterEach - Jasmine 2 and nesting problem","user":{"login":"m1gu3l","id":140639,"avatar_url":"https://avatars.githubusercontent.com/u/140639?v=3","gravatar_id":"","url":"https://api.github.com/users/m1gu3l","html_url":"https://github.com/m1gu3l","followers_url":"https://api.github.com/users/m1gu3l/followers","following_url":"https://api.github.com/users/m1gu3l/following{/other_user}","gists_url":"https://api.github.com/users/m1gu3l/gists{/gist_id}","starred_url":"https://api.github.com/users/m1gu3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m1gu3l/subscriptions","organizations_url":"https://api.github.com/users/m1gu3l/orgs","repos_url":"https://api.github.com/users/m1gu3l/repos","events_url":"https://api.github.com/users/m1gu3l/events{/privacy}","received_events_url":"https://api.github.com/users/m1gu3l/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-16T17:09:46Z","updated_at":"2015-12-03T15:41:43Z","closed_at":null,"body":"This is probably connected to #74 \r\n\r\n```\r\nngDescribe({\r\n\tonly: true,\r\n\tname: 'fail',\r\n\ttests: function(deps) {\r\n\r\n\t\tbeforeEach(function() {\r\n\t\t\tconsole.log('before every');\r\n\t\t});\r\n\r\n\t\tdescribe('nested 1', function() {\r\n\t\t\tbeforeEach(function() {\r\n\t\t\t\tconsole.log('before every 1');\r\n\t\t\t});\r\n\r\n\t\t\tit(\"1\", function() {\r\n\t\t\t\tconsole.log(\"1\");\r\n\t\t\t});\r\n\r\n\t\t\tit(\"1\", function() {\r\n\t\t\t\tconsole.log(\"1\");\r\n\t\t\t});\r\n\r\n\t\t\tafterEach(function() {\r\n\t\t\t\tconsole.log('after every 1');\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tdescribe('nested 2', function() {\r\n\t\t\tbeforeEach(function() {\r\n\t\t\t\tconsole.log('before every 2');\r\n\t\t\t});\r\n\r\n\t\t\tit(\"2\", function() {\r\n\t\t\t\tconsole.log(\"2\");\r\n\t\t\t});\r\n\r\n\t\t\tit(\"2\", function() {\r\n\t\t\t\tconsole.log(\"2\");\r\n\t\t\t});\r\n\r\n\t\t\tafterEach(function() {\r\n\t\t\t\tconsole.log('after every 2');\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tafterEach(function() {\r\n\t\t\tconsole.log('after every');\r\n\t\t});\r\n\r\n\t}\r\n});\r\n```\r\n\r\nshould output:\r\n\r\n- before every\r\n  before every 1\r\n  1\r\n  after every 1\r\n  after every\r\n\r\n- before every\r\n  before every 1\r\n  1\r\n  after every 1\r\n  after every\r\n\r\n- before every\r\n  before every 2\r\n  2\r\n  after every 2\r\n  after every\r\n\r\n- before every\r\n  before every 2\r\n  2\r\n  after every 2 \r\n  after every\r\n\r\nbut outputs:\r\n\r\n- before every\r\n  before every 1\r\n  1\r\n  after every 1\r\n  after every 2  :boom:\r\n  after every\r\n\r\n- before every\r\n  before every 1\r\n  1\r\n  after every 1\r\n  after every 2  :boom:\r\n  after every\r\n\r\n- before every\r\n  before every 2\r\n  2\r\n  after every 1  :boom:\r\n  after every 2\r\n  after every\r\n\r\n- before every\r\n  before every 2\r\n  2\r\n  after every 1 :boom:\r\n  after every 2\r\n  after every"},"comment":{"url":"https://api.github.com/repos/kensho/ng-describe/issues/comments/161680497","html_url":"https://github.com/kensho/ng-describe/issues/81#issuecomment-161680497","issue_url":"https://api.github.com/repos/kensho/ng-describe/issues/81","id":161680497,"user":{"login":"bahmutov","id":2212006,"avatar_url":"https://avatars.githubusercontent.com/u/2212006?v=3","gravatar_id":"","url":"https://api.github.com/users/bahmutov","html_url":"https://github.com/bahmutov","followers_url":"https://api.github.com/users/bahmutov/followers","following_url":"https://api.github.com/users/bahmutov/following{/other_user}","gists_url":"https://api.github.com/users/bahmutov/gists{/gist_id}","starred_url":"https://api.github.com/users/bahmutov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahmutov/subscriptions","organizations_url":"https://api.github.com/users/bahmutov/orgs","repos_url":"https://api.github.com/users/bahmutov/repos","events_url":"https://api.github.com/users/bahmutov/events{/privacy}","received_events_url":"https://api.github.com/users/bahmutov/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T15:41:43Z","updated_at":"2015-12-03T15:41:43Z","body":"ok, Jasmine 2.4.0 finally merged, so we can test it and remove our hacks!!! :fireworks: \r\n\r\nhttps://github.com/jasmine/jasmine/blob/master/release_notes/2.4.0.md"}}