{"action":"closed","issue":{"url":"https://api.github.com/repos/mzabriskie/moxios/issues/2","repository_url":"https://api.github.com/repos/mzabriskie/moxios","labels_url":"https://api.github.com/repos/mzabriskie/moxios/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mzabriskie/moxios/issues/2/comments","events_url":"https://api.github.com/repos/mzabriskie/moxios/issues/2/events","html_url":"https://github.com/mzabriskie/moxios/issues/2","id":159503928,"number":2,"title":"moxios.requests.mostRecent() returns undefined","user":{"login":"main-kun","id":13281662,"avatar_url":"https://avatars.githubusercontent.com/u/13281662?v=3","gravatar_id":"","url":"https://api.github.com/users/main-kun","html_url":"https://github.com/main-kun","followers_url":"https://api.github.com/users/main-kun/followers","following_url":"https://api.github.com/users/main-kun/following{/other_user}","gists_url":"https://api.github.com/users/main-kun/gists{/gist_id}","starred_url":"https://api.github.com/users/main-kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/main-kun/subscriptions","organizations_url":"https://api.github.com/users/main-kun/orgs","repos_url":"https://api.github.com/users/main-kun/repos","events_url":"https://api.github.com/users/main-kun/events{/privacy}","received_events_url":"https://api.github.com/users/main-kun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-09T20:46:01Z","updated_at":"2016-06-19T19:44:43Z","closed_at":"2016-06-19T19:44:43Z","body":"I use karma, jasmine and phantomJS with babel-polyfill. mostRecent always returns undefined even if I call axios in the test directly.\r\n\r\nFor example:\r\n```coffeescript\r\naxios = require 'axios'\r\nmoxios = require 'moxios'\r\n\r\ndescribe 'Test moxios', () ->\r\n  beforeEach () ->\r\n    moxios.install()\r\n\r\n  afterEach () ->\r\n    moxios.uninstall()\r\n\r\n  it 'mostRecent should return a request', () ->\r\n    axios('http://example.com').then (result) -> console.log result\r\n    moxios.wait () ->\r\n      console.log moxios.requests.mostRecent()\r\n      # undefined\r\n```\r\n\r\n\r\n\r\n "}}
{"actor":{"display_login":"main-kun"}}