{"action":"closed","issue":{"url":"https://api.github.com/repos/goatslacker/alt/issues/389","labels_url":"https://api.github.com/repos/goatslacker/alt/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/goatslacker/alt/issues/389/comments","events_url":"https://api.github.com/repos/goatslacker/alt/issues/389/events","html_url":"https://github.com/goatslacker/alt/issues/389","id":93856447,"number":389,"title":"exportPublicMethods does not export methods under mocha...","user":{"login":"jcalfee","id":204121,"avatar_url":"https://avatars.githubusercontent.com/u/204121?v=3","gravatar_id":"","url":"https://api.github.com/users/jcalfee","html_url":"https://github.com/jcalfee","followers_url":"https://api.github.com/users/jcalfee/followers","following_url":"https://api.github.com/users/jcalfee/following{/other_user}","gists_url":"https://api.github.com/users/jcalfee/gists{/gist_id}","starred_url":"https://api.github.com/users/jcalfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcalfee/subscriptions","organizations_url":"https://api.github.com/users/jcalfee/orgs","repos_url":"https://api.github.com/users/jcalfee/repos","events_url":"https://api.github.com/users/jcalfee/events{/privacy}","received_events_url":"https://api.github.com/users/jcalfee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T18:19:24Z","updated_at":"2015-07-08T18:31:08Z","closed_at":"2015-07-08T18:31:08Z","body":"Can you think of any reason this would fail?  We run this code fine in the browser and it works.  It is just when I go to run any mocha test that imports an Alt store, the exportPublicMethods is called with good data but the static store methods do not exist.\r\n\r\nA console.log of the store shows {} or a Object.keys(Store) shows [] ...  \r\n\r\nHope you don't mind all the links.  Not sure how to show you.  Let me know if I can clarify or if if this is not an Alt issue.  thanks...\r\n\r\nThis is the alt store that is exported as follows:\r\n`module.exports = alt.createStore(WalletStore, \"WalletStore\")`\r\nThen calls _export on its parent:\r\nhttps://github.com/cryptonomex/graphene-ui/blob/9cceb5247acd0b46d5f99b8dd039104af10cc912/dl/src/stores/WalletStore.js#L24\r\n\r\nIn the _export method, a console.log shows that the methods are being passed to `this.exportPublicMethods`:\r\nhttps://github.com/cryptonomex/graphene-ui/blob/9cceb5247acd0b46d5f99b8dd039104af10cc912/dl/src/stores/BaseStore.js#L10\r\n\r\nFinally, it comes up empty (again, only from mocha though):\r\nhttps://github.com/cryptonomex/graphene-ui/blob/9cceb5247acd0b46d5f99b8dd039104af10cc912/dl/src/actions/WalletActions.js#L8\r\n\r\nMocha usage:\r\nhttps://github.com/cryptonomex/graphene-ui/blob/9cceb5247acd0b46d5f99b8dd039104af10cc912/dl/package.json#L18\r\n\r\nMocha test:\r\nhttps://github.com/cryptonomex/graphene-ui/blob/9cceb5247acd0b46d5f99b8dd039104af10cc912/dl/test/wallet_action_test.js#L69\r\n\r\n... that method call into this class and ends up erroring here:\r\n`TypeError: Object [object Object] has no method 'isLocked'`\r\nhttps://github.com/cryptonomex/graphene-ui/blob/9cceb5247acd0b46d5f99b8dd039104af10cc912/dl/src/actions/WalletActions.js#L24\r\n\r\n"}}