{"action":"created","issue":{"url":"https://api.github.com/repos/domenic/chai-as-promised/issues/47","repository_url":"https://api.github.com/repos/domenic/chai-as-promised","labels_url":"https://api.github.com/repos/domenic/chai-as-promised/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/domenic/chai-as-promised/issues/47/comments","events_url":"https://api.github.com/repos/domenic/chai-as-promised/issues/47/events","html_url":"https://github.com/domenic/chai-as-promised/issues/47","id":30262151,"number":47,"title":"isRejected not behaving as assert.throw","user":{"login":"liebrand","id":1579169,"avatar_url":"https://avatars.githubusercontent.com/u/1579169?v=3","gravatar_id":"","url":"https://api.github.com/users/liebrand","html_url":"https://github.com/liebrand","followers_url":"https://api.github.com/users/liebrand/followers","following_url":"https://api.github.com/users/liebrand/following{/other_user}","gists_url":"https://api.github.com/users/liebrand/gists{/gist_id}","starred_url":"https://api.github.com/users/liebrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liebrand/subscriptions","organizations_url":"https://api.github.com/users/liebrand/orgs","repos_url":"https://api.github.com/users/liebrand/repos","events_url":"https://api.github.com/users/liebrand/events{/privacy}","received_events_url":"https://api.github.com/users/liebrand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/domenic/chai-as-promised/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2014-03-26T23:34:54Z","updated_at":"2016-10-03T18:21:41Z","closed_at":"2016-08-05T13:47:42Z","body":"assert.throw accepts a string/regex to compare against the thrown error.message\r\n\r\neg:\r\n      assert.throw(function() {\r\n        throw new Error('error message');\r\n      }, 'this is not the error message', 'my msg');\r\n\r\nfails with:\r\nAssertionError: expected [Function] to throw error including 'this is not the error message' but got 'error message'\r\n\r\n\r\nbut:\r\n      var promise = new Promise(function(resolve, reject) {\r\n        reject(new Error('error message'));\r\n      });\r\n      return assert.isRejected(promise, 'this is not the error message', \"optional msg\");\r\n\r\ndoes not fail"},"comment":{"url":"https://api.github.com/repos/domenic/chai-as-promised/issues/comments/251184030","html_url":"https://github.com/domenic/chai-as-promised/issues/47#issuecomment-251184030","issue_url":"https://api.github.com/repos/domenic/chai-as-promised/issues/47","id":251184030,"user":{"login":"JustinLivi","id":2466999,"avatar_url":"https://avatars.githubusercontent.com/u/2466999?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinLivi","html_url":"https://github.com/JustinLivi","followers_url":"https://api.github.com/users/JustinLivi/followers","following_url":"https://api.github.com/users/JustinLivi/following{/other_user}","gists_url":"https://api.github.com/users/JustinLivi/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinLivi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinLivi/subscriptions","organizations_url":"https://api.github.com/users/JustinLivi/orgs","repos_url":"https://api.github.com/users/JustinLivi/repos","events_url":"https://api.github.com/users/JustinLivi/events{/privacy}","received_events_url":"https://api.github.com/users/JustinLivi/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T18:21:41Z","updated_at":"2016-10-03T18:21:41Z","body":"Hi all! I'm excited about the direction that you're taking chai and chai-as-promised with breaking error checking out into a more modular system. I'm just wondering where the best place to track progress on this would be? I wasn't able to locate the appropriate issue in the chai.js repo. Would this be the best issue to subscribe to? Thanks!"}}
{"actor":{"display_login":"JustinLivi"}}