{"action":"opened","issue":{"url":"https://api.github.com/repos/hpneo/gmaps/issues/524","repository_url":"https://api.github.com/repos/hpneo/gmaps","labels_url":"https://api.github.com/repos/hpneo/gmaps/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/hpneo/gmaps/issues/524/comments","events_url":"https://api.github.com/repos/hpneo/gmaps/issues/524/events","html_url":"https://github.com/hpneo/gmaps/issues/524","id":182397609,"number":524,"title":"addMarker work fine, but mocha see it as undefined while test","user":{"login":"moonbrv","id":14214811,"avatar_url":"https://avatars.githubusercontent.com/u/14214811?v=3","gravatar_id":"","url":"https://api.github.com/users/moonbrv","html_url":"https://github.com/moonbrv","followers_url":"https://api.github.com/users/moonbrv/followers","following_url":"https://api.github.com/users/moonbrv/following{/other_user}","gists_url":"https://api.github.com/users/moonbrv/gists{/gist_id}","starred_url":"https://api.github.com/users/moonbrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moonbrv/subscriptions","organizations_url":"https://api.github.com/users/moonbrv/orgs","repos_url":"https://api.github.com/users/moonbrv/repos","events_url":"https://api.github.com/users/moonbrv/events{/privacy}","received_events_url":"https://api.github.com/users/moonbrv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-11T23:13:31Z","updated_at":"2016-10-11T23:13:31Z","closed_at":null,"body":"Hello, i write small piece of code, as it shown in tutorial:\r\n```javascript\r\nconst map = new GMaps({\r\n  el: '#map',\r\n  lat: this.props.lat,\r\n  lng: this.props.lng,\r\n});\r\n\r\nmap.addMarker({\r\n  lat: this.props.lat,\r\n  lng: this.props.lng,\r\n});\r\n```\r\n\r\nmy App works fine, but when i decide to add some Mocha's tests to my components i saw message:\r\n```bash\r\nTypeError: map.addMarker is not a function\r\n```\r\nI'm not understand how it could be.\r\nI write some test:\r\n```javascript\r\nconsole.log(typeof GMaps); // function\r\nconsole.log(typeof GMaps()); // function\r\nconsole.log(GMaps().toString()); // function () {}\r\n```\r\nMay be it is because i'm in node env. But how can I fix that situation? How to make tests?"}}
{"actor":{"display_login":"moonbrv"}}