{"action":"created","issue":{"url":"https://api.github.com/repos/switchfly/ember-cli-mocha/issues/37","labels_url":"https://api.github.com/repos/switchfly/ember-cli-mocha/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/switchfly/ember-cli-mocha/issues/37/comments","events_url":"https://api.github.com/repos/switchfly/ember-cli-mocha/issues/37/events","html_url":"https://github.com/switchfly/ember-cli-mocha/issues/37","id":57042275,"number":37,"title":"jshint error for 'describe/it not defined' on generated helper tests","user":{"login":"DisruptiveMind","id":95763,"avatar_url":"https://avatars.githubusercontent.com/u/95763?v=3","gravatar_id":"","url":"https://api.github.com/users/DisruptiveMind","html_url":"https://github.com/DisruptiveMind","followers_url":"https://api.github.com/users/DisruptiveMind/followers","following_url":"https://api.github.com/users/DisruptiveMind/following{/other_user}","gists_url":"https://api.github.com/users/DisruptiveMind/gists{/gist_id}","starred_url":"https://api.github.com/users/DisruptiveMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DisruptiveMind/subscriptions","organizations_url":"https://api.github.com/users/DisruptiveMind/orgs","repos_url":"https://api.github.com/users/DisruptiveMind/repos","events_url":"https://api.github.com/users/DisruptiveMind/events{/privacy}","received_events_url":"https://api.github.com/users/DisruptiveMind/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-02-09T15:07:48Z","updated_at":"2015-02-22T21:57:39Z","closed_at":"2015-02-22T20:04:28Z","body":"When generating a new helper the associated test does not run due to globals `'describe'` and `'it'` not being defined.\r\n\r\n**Generated**\r\n```javascript\r\n/* jshint expr:true */\r\nimport {\r\n  aHelper\r\n} from 'hub/helpers/a-helper';\r\n\r\ndescribe('AHelperHelper', function() {\r\n  // Replace this with your real tests.\r\n  it('works', function() {\r\n    var result = aHelper(42);\r\n    expect(result).to.be.ok;\r\n  });\r\n});\r\n```\r\n\r\nResults in: \r\n```javascript\r\nunit/helpers/a-helper-test.js: line 6, col 1, 'describe' is not defined.\r\nunit/helpers/a-helper-test.js: line 8, col 3, 'it' is not defined.\r\n```\r\n\r\n**solution....sort of**\r\nI manually added `'describe'` and `'it'` to ***tests/.jshintrc*** after looking at #3 \r\n\r\nIs there another way of doing this or am I hooking things up wrong somewhere else?"},"comment":{"url":"https://api.github.com/repos/switchfly/ember-cli-mocha/issues/comments/75465159","html_url":"https://github.com/switchfly/ember-cli-mocha/issues/37#issuecomment-75465159","issue_url":"https://api.github.com/repos/switchfly/ember-cli-mocha/issues/37","id":75465159,"user":{"login":"dgeb","id":29122,"avatar_url":"https://avatars.githubusercontent.com/u/29122?v=3","gravatar_id":"","url":"https://api.github.com/users/dgeb","html_url":"https://github.com/dgeb","followers_url":"https://api.github.com/users/dgeb/followers","following_url":"https://api.github.com/users/dgeb/following{/other_user}","gists_url":"https://api.github.com/users/dgeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dgeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgeb/subscriptions","organizations_url":"https://api.github.com/users/dgeb/orgs","repos_url":"https://api.github.com/users/dgeb/repos","events_url":"https://api.github.com/users/dgeb/events{/privacy}","received_events_url":"https://api.github.com/users/dgeb/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T21:57:39Z","updated_at":"2015-02-22T21:57:39Z","body":"> And, I still haven't heard anyone say they wanted to use should syntax\r\n\r\n@rwjblue oh, I almost forgot about #14. Let me comment there."}}