{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/529","labels_url":"https://api.github.com/repos/facebook/jest/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/529/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/529/events","html_url":"https://github.com/facebook/jest/issues/529","id":109600826,"number":529,"title":"TypeError: Cannot read property 'orderByPassenger' of undefined","user":{"login":"rodrigo191","id":69570,"avatar_url":"https://avatars.githubusercontent.com/u/69570?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigo191","html_url":"https://github.com/rodrigo191","followers_url":"https://api.github.com/users/rodrigo191/followers","following_url":"https://api.github.com/users/rodrigo191/following{/other_user}","gists_url":"https://api.github.com/users/rodrigo191/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigo191/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigo191/subscriptions","organizations_url":"https://api.github.com/users/rodrigo191/orgs","repos_url":"https://api.github.com/users/rodrigo191/repos","events_url":"https://api.github.com/users/rodrigo191/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigo191/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-03T04:01:08Z","updated_at":"2015-10-03T04:01:08Z","closed_at":null,"body":"I don´t know why it throws the type error.\r\n\r\n'use strict';\r\njest.dontMock('../TripSearchStore.js');\r\ndescribe('orderByPassenger', function(){\r\n  it('Sort Ascending Trips', function(){\r\n    var TripSearchStore       = require(\"../TripSearchStore\");\r\n    var dummyReservationList  = {};\r\n\r\n    TripSearchStore.orderByPassenger(dummyReservationList);\r\n\r\n    expect(TripSearchStore.orderByPassenger).toBeCalledWith({\r\n      param: dummyReservationList,\r\n      success: jasmine.any(Function)\r\n    });\r\n  });\r\n});\r\n\r\nTypeError: Cannot read property 'orderByPassenger' of undefined\r\n"}}