{"action":"created","issue":{"url":"https://api.github.com/repos/bvaughn/jasmine-promise-matchers/issues/13","labels_url":"https://api.github.com/repos/bvaughn/jasmine-promise-matchers/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/bvaughn/jasmine-promise-matchers/issues/13/comments","events_url":"https://api.github.com/repos/bvaughn/jasmine-promise-matchers/issues/13/events","html_url":"https://github.com/bvaughn/jasmine-promise-matchers/issues/13","id":108391164,"number":13,"title":"A way to detect is tested object is a promise at all","user":{"login":"jrencz","id":948356,"avatar_url":"https://avatars.githubusercontent.com/u/948356?v=3","gravatar_id":"","url":"https://api.github.com/users/jrencz","html_url":"https://github.com/jrencz","followers_url":"https://api.github.com/users/jrencz/followers","following_url":"https://api.github.com/users/jrencz/following{/other_user}","gists_url":"https://api.github.com/users/jrencz/gists{/gist_id}","starred_url":"https://api.github.com/users/jrencz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrencz/subscriptions","organizations_url":"https://api.github.com/users/jrencz/orgs","repos_url":"https://api.github.com/users/jrencz/repos","events_url":"https://api.github.com/users/jrencz/events{/privacy}","received_events_url":"https://api.github.com/users/jrencz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bvaughn/jasmine-promise-matchers/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-25T19:17:50Z","updated_at":"2015-09-25T20:12:14Z","closed_at":null,"body":"I'd love to see something that will facilitate testing whether something is a promise at all - not whether it's resolved or rejected.\r\n\r\nSo far I came up with:\r\n\r\n```javascript\r\nexpect(promiseOrNot.constructor).toBe($q(function() {}).constructor);\r\n```\r\n\r\n(off course after checking if it's an object or not)\r\n\r\n@bvaughn do you find a matcher `toBePromise` useful and worth adding to this package?"},"comment":{"url":"https://api.github.com/repos/bvaughn/jasmine-promise-matchers/issues/comments/143341090","html_url":"https://github.com/bvaughn/jasmine-promise-matchers/issues/13#issuecomment-143341090","issue_url":"https://api.github.com/repos/bvaughn/jasmine-promise-matchers/issues/13","id":143341090,"user":{"login":"jrencz","id":948356,"avatar_url":"https://avatars.githubusercontent.com/u/948356?v=3","gravatar_id":"","url":"https://api.github.com/users/jrencz","html_url":"https://github.com/jrencz","followers_url":"https://api.github.com/users/jrencz/followers","following_url":"https://api.github.com/users/jrencz/following{/other_user}","gists_url":"https://api.github.com/users/jrencz/gists{/gist_id}","starred_url":"https://api.github.com/users/jrencz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrencz/subscriptions","organizations_url":"https://api.github.com/users/jrencz/orgs","repos_url":"https://api.github.com/users/jrencz/repos","events_url":"https://api.github.com/users/jrencz/events{/privacy}","received_events_url":"https://api.github.com/users/jrencz/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T20:12:14Z","updated_at":"2015-09-25T20:12:14Z","body":"@bvaughn I'll try, but I don't know the internals of the project yet. It may take a while"}}