{"action":"opened","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1561","repository_url":"https://api.github.com/repos/gulpjs/gulp","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1561/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1561/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1561/events","html_url":"https://github.com/gulpjs/gulp/issues/1561","id":140466320,"number":1561,"title":"gulp 3.9: failed to run gulp test","user":{"login":"hodbauer","id":17808632,"avatar_url":"https://avatars.githubusercontent.com/u/17808632?v=3","gravatar_id":"","url":"https://api.github.com/users/hodbauer","html_url":"https://github.com/hodbauer","followers_url":"https://api.github.com/users/hodbauer/followers","following_url":"https://api.github.com/users/hodbauer/following{/other_user}","gists_url":"https://api.github.com/users/hodbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/hodbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hodbauer/subscriptions","organizations_url":"https://api.github.com/users/hodbauer/orgs","repos_url":"https://api.github.com/users/hodbauer/repos","events_url":"https://api.github.com/users/hodbauer/events{/privacy}","received_events_url":"https://api.github.com/users/hodbauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-13T08:52:04Z","updated_at":"2016-03-13T08:52:04Z","closed_at":null,"body":"I'm trying to run my app tests.\r\nNo matter what i've done the 'gulp test' is failed with the next error:\r\n_Error: [$injector:modulerr] Failed to instantiate module ng due to:\r\nTypeError: 'undefined' is not an object (evaluating 'Function.prototype.bind.apply')_\r\n\r\nI have angular 1.5.1 app with ES6 syntax and i'm trying to test it.\r\nI'm using karma with Jasmine to test it. i created a test:\r\n```javascript\r\ndescribe('controllers', () => {\r\n  let vm;\r\n  beforeEach(angular.mock.module('myApp'));\r\n  // failed when adding this code (no matter what it include)\r\n  beforeEach(inject(() => {\r\n  }));\r\n  // till here\r\n  it('should be true', function(){\r\n    expect(true).toBeTruthy();\r\n  })\r\n});\r\n```\r\nwhen i'm removing the inject section all is ok, but i cannot test my app without inject my controllers..."}}