{"action":"created","issue":{"url":"https://api.github.com/repos/bvaughn/jasmine-es6-promise-matchers/issues/3","labels_url":"https://api.github.com/repos/bvaughn/jasmine-es6-promise-matchers/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/bvaughn/jasmine-es6-promise-matchers/issues/3/comments","events_url":"https://api.github.com/repos/bvaughn/jasmine-es6-promise-matchers/issues/3/events","html_url":"https://github.com/bvaughn/jasmine-es6-promise-matchers/issues/3","id":69705200,"number":3,"title":"Promises Coming Back As Gibberish?","user":{"login":"BobbieBarker","id":4307099,"avatar_url":"https://avatars.githubusercontent.com/u/4307099?v=3","gravatar_id":"","url":"https://api.github.com/users/BobbieBarker","html_url":"https://github.com/BobbieBarker","followers_url":"https://api.github.com/users/BobbieBarker/followers","following_url":"https://api.github.com/users/BobbieBarker/following{/other_user}","gists_url":"https://api.github.com/users/BobbieBarker/gists{/gist_id}","starred_url":"https://api.github.com/users/BobbieBarker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobbieBarker/subscriptions","organizations_url":"https://api.github.com/users/BobbieBarker/orgs","repos_url":"https://api.github.com/users/BobbieBarker/repos","events_url":"https://api.github.com/users/BobbieBarker/events{/privacy}","received_events_url":"https://api.github.com/users/BobbieBarker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-20T23:39:50Z","updated_at":"2015-04-24T17:51:56Z","closed_at":"2015-04-24T17:51:56Z","body":"When I try to unit test my promises and console log the promise object it looks like this:\r\n\r\n b{_handler: v{consumers: undefined, receiver: undefined, handler: z{id: ..., value: ..., handled: ..., reported: ...}, resolved: true}}\r\n\r\n\r\nNone of the methods from this lib can do anything with them.\r\nWhen I try the more old school way of running promises as detailed in your readme:\r\n\r\nvar resolvedValue;\r\n\r\npromise.then(\r\n  function(value) {\r\n    resolvedValue = value;\r\n  });\r\n\r\njasmine.clock().tick(1);\r\n\r\nexpect(resolvedValue).toBe('something');\r\n\r\nresolvedvalue is always undefined.\r\n\r\n\r\n--When I use my app it works just fine, all the promises are behaving as expected. \r\n\r\nWhat am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/bvaughn/jasmine-es6-promise-matchers/issues/comments/96011985","html_url":"https://github.com/bvaughn/jasmine-es6-promise-matchers/issues/3#issuecomment-96011985","issue_url":"https://api.github.com/repos/bvaughn/jasmine-es6-promise-matchers/issues/3","id":96011985,"user":{"login":"bvaughn","id":29597,"avatar_url":"https://avatars.githubusercontent.com/u/29597?v=3","gravatar_id":"","url":"https://api.github.com/users/bvaughn","html_url":"https://github.com/bvaughn","followers_url":"https://api.github.com/users/bvaughn/followers","following_url":"https://api.github.com/users/bvaughn/following{/other_user}","gists_url":"https://api.github.com/users/bvaughn/gists{/gist_id}","starred_url":"https://api.github.com/users/bvaughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvaughn/subscriptions","organizations_url":"https://api.github.com/users/bvaughn/orgs","repos_url":"https://api.github.com/users/bvaughn/repos","events_url":"https://api.github.com/users/bvaughn/events{/privacy}","received_events_url":"https://api.github.com/users/bvaughn/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T17:51:56Z","updated_at":"2015-04-24T17:51:56Z","body":"I've released an updated version of this library (2.0) that should hopefully address your concerns. Note that a small signature change has been made to the matchers (as shown in the README/examples).\r\n\r\nHere's an updated version of your tests that should work if run against the new release:\r\n```js\r\ndescribe('someClass Class', function(){\r\n  var test = {};\r\n\r\n  beforeEach(() => {\r\n    JasminePromiseMatchers.install();\r\n    test = new someClass();\r\n  })\r\n \r\n  afterEach(JasminePromiseMatchers.uninstall);\r\n \r\n  it('should exist', () => {\r\n    expect(test).toBeDefined();\r\n  })\r\n \r\n  it('should possess a compose function', () => {\r\n    expect(test.compose).toBeDefined();\r\n    expect(test.compose).toEqual(jasmine.any(Function));\r\n  })\r\n \r\n  it('should reject an empty arguement', (done) => {\r\n    let promise = test.compose({});\r\n    expect(promise).toBeRejected(done);\r\n  })\r\n \r\n  it('should return a query Obj', (done) => {\r\n    let idealStuff = {name: 'superQ'};\r\n    let promise = test.compose(idealStuff);\r\n    let partialMatch = jasmine.objectContaining({name: 'superQ'});\r\n    expect(promise).toBeResolvedWith(partialMatch, done);\r\n  })\r\n});\r\n```\r\n\r\n\r\nThanks for bringing up this issue. I apologies that it took me a few days to get around to it. I've been busy unpacking. :)"}}