{"action":"created","issue":{"url":"https://api.github.com/repos/gitevents/core/issues/181","repository_url":"https://api.github.com/repos/gitevents/core","labels_url":"https://api.github.com/repos/gitevents/core/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/gitevents/core/issues/181/comments","events_url":"https://api.github.com/repos/gitevents/core/issues/181/events","html_url":"https://github.com/gitevents/core/issues/181","id":144487417,"number":181,"title":"Running tests fails on OS X","user":{"login":"TinyExplosions","id":1452247,"avatar_url":"https://avatars.githubusercontent.com/u/1452247?v=3","gravatar_id":"","url":"https://api.github.com/users/TinyExplosions","html_url":"https://github.com/TinyExplosions","followers_url":"https://api.github.com/users/TinyExplosions/followers","following_url":"https://api.github.com/users/TinyExplosions/following{/other_user}","gists_url":"https://api.github.com/users/TinyExplosions/gists{/gist_id}","starred_url":"https://api.github.com/users/TinyExplosions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TinyExplosions/subscriptions","organizations_url":"https://api.github.com/users/TinyExplosions/orgs","repos_url":"https://api.github.com/users/TinyExplosions/repos","events_url":"https://api.github.com/users/TinyExplosions/events{/privacy}","received_events_url":"https://api.github.com/users/TinyExplosions/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T07:29:43Z","updated_at":"2016-03-31T08:30:03Z","closed_at":null,"body":"I cloned the gitevents repo, performed an `npm install .` and then ran `npm run test`\r\n\r\nI get the following errors: (npm is version 3.8.3 and node version is 5.4.0). node is being run via nvm.\r\n\r\n```\r\n$ npm run test\r\n\r\n> gitevents@0.4.0 test ~/OSS/gitevents\r\n> npm run test-int\r\n\r\n\r\n> gitevents@0.4.0 test-int ~/OSS/gitevents\r\n> NODE_ENV=test tape tests/integration/*.js | tap-spec\r\n\r\nundefined:1\r\nmilestone = arguments.varValue;\r\n          ^\r\n\r\nTypeError: Assignment to constant variable.\r\n    at eval (eval at __set__ (~/OSS/gitevents/lib/events.js:362:19), <anonymous>:1:11)\r\n    at Function.__set__ (~/OSS/gitevents/lib/events.js:362:5)\r\n    at Object.<anonymous> (~/OSS/gitevents/tests/integration/events.js:11:8)\r\n    at Module._compile (module.js:398:26)\r\n    at Object.Module._extensions..js (module.js:405:10)\r\n    at Module.load (module.js:344:32)\r\n    at Function.Module._load (module.js:301:12)\r\n    at Module.require (module.js:354:17)\r\n    at require (internal/module.js:12:17)\r\n    at ~/OSS/gitevents/node_modules/tape/bin/tape:31:13\r\n\r\n\r\n\r\nnpm ERR! Darwin 15.4.0\r\nnpm ERR! argv \"~/.nvm/versions/node/v5.4.0/bin/node\" \"~/.nvm/versions/node/v5.4.0/bin/npm\" \"run\" \"test-int\"\r\nnpm ERR! node v5.4.0\r\nnpm ERR! npm  v3.8.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! gitevents@0.4.0 test-int: `NODE_ENV=test tape tests/integration/*.js | tap-spec`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the gitevents@0.4.0 test-int script 'NODE_ENV=test tape tests/integration/*.js | tap-spec'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the gitevents package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     NODE_ENV=test tape tests/integration/*.js | tap-spec\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs gitevents\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls gitevents\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     ~/OSS/gitevents/npm-debug.log\r\n\r\nnpm ERR! Darwin 15.4.0\r\nnpm ERR! argv \"~/.nvm/versions/node/v5.4.0/bin/node\" \"~/.nvm/versions/node/v5.4.0/bin/npm\" \"run\" \"test\"\r\nnpm ERR! node v5.4.0\r\nnpm ERR! npm  v3.8.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! gitevents@0.4.0 test: `npm run test-int`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the gitevents@0.4.0 test script 'npm run test-int'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the gitevents package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     npm run test-int\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs gitevents\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls gitevents\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!    ~/OSS/gitevents/npm-debug.log\r\n```\r\n\r\nThis is as much for your info as a bug report, as I suspect it could be my setup that's causing the problems! (I'm running OS X 10.11.4, MacBook Pro (Retina, 13-inch, Late 2013))"},"comment":{"url":"https://api.github.com/repos/gitevents/core/issues/comments/203818389","html_url":"https://github.com/gitevents/core/issues/181#issuecomment-203818389","issue_url":"https://api.github.com/repos/gitevents/core/issues/181","id":203818389,"user":{"login":"ifraixedes","id":1731633,"avatar_url":"https://avatars.githubusercontent.com/u/1731633?v=3","gravatar_id":"","url":"https://api.github.com/users/ifraixedes","html_url":"https://github.com/ifraixedes","followers_url":"https://api.github.com/users/ifraixedes/followers","following_url":"https://api.github.com/users/ifraixedes/following{/other_user}","gists_url":"https://api.github.com/users/ifraixedes/gists{/gist_id}","starred_url":"https://api.github.com/users/ifraixedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifraixedes/subscriptions","organizations_url":"https://api.github.com/users/ifraixedes/orgs","repos_url":"https://api.github.com/users/ifraixedes/repos","events_url":"https://api.github.com/users/ifraixedes/events{/privacy}","received_events_url":"https://api.github.com/users/ifraixedes/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T08:30:03Z","updated_at":"2016-03-31T08:30:03Z","body":"Running on node `v5.9.1` and on ubuntu Wily x64 server happens the same.\r\n\r\nThe problem isn't your setup, the issue is the integration test is using [rewire](https://www.npmjs.com/package/rewire) defining a settter for an internal `const` defined in `lib/event.js:L9`(https://github.com/gitevents/core/blob/b9ca06753308ae0a67c8583b25c1014215ff7128/lib/events.js#L9)\r\n\r\nAn V8 runtime because protect `const vars` reassignation\r\n\r\nNot sure why the test passed in the CI and in other dev machines, as I haven't been involved in the development for long time.\r\n\r\nI expect that somebody involved recently in the development will provide better explanation and will fix it shortly.\r\n\r\nSorry for the inconveniences and many thanks for reporting it."}}