{"action":"closed","issue":{"url":"https://api.github.com/repos/leftstick/generator-es6-angular/issues/9","repository_url":"https://api.github.com/repos/leftstick/generator-es6-angular","labels_url":"https://api.github.com/repos/leftstick/generator-es6-angular/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/leftstick/generator-es6-angular/issues/9/comments","events_url":"https://api.github.com/repos/leftstick/generator-es6-angular/issues/9/events","html_url":"https://github.com/leftstick/generator-es6-angular/issues/9","id":130323461,"number":9,"title":"Tests","user":{"login":"Tiagojdferreira","id":1483616,"avatar_url":"https://avatars.githubusercontent.com/u/1483616?v=3","gravatar_id":"","url":"https://api.github.com/users/Tiagojdferreira","html_url":"https://github.com/Tiagojdferreira","followers_url":"https://api.github.com/users/Tiagojdferreira/followers","following_url":"https://api.github.com/users/Tiagojdferreira/following{/other_user}","gists_url":"https://api.github.com/users/Tiagojdferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/Tiagojdferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tiagojdferreira/subscriptions","organizations_url":"https://api.github.com/users/Tiagojdferreira/orgs","repos_url":"https://api.github.com/users/Tiagojdferreira/repos","events_url":"https://api.github.com/users/Tiagojdferreira/events{/privacy}","received_events_url":"https://api.github.com/users/Tiagojdferreira/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-01T10:35:54Z","updated_at":"2016-05-11T07:05:45Z","closed_at":"2016-05-11T07:05:45Z","body":"I have been trying to implement unit tests in my project to no avail. After that, I decided to go back to the first commit (what your generator created), and use ```gulp test```. This also failed, so it seems there is some problem with your unit testing. \r\n\r\nI keep getting the following error:\r\n\r\n```\r\nError: [ng:areq] Argument 'HomeController' is not a function, got undefined\r\n```\r\n\r\nOne thing that strikes me as odd right away is that you define ```var $controller;``` and then you use it as though it was the angular $controller.\r\n````\r\nvar controller = $controller('HomeController', {\r\n            $scope: $scope,\r\n            $alert: {},\r\n            HomeService: MockHomeService,\r\n            events: {}\r\n        });\r\n````\r\nDid you by any chance forget to use angular or angular-mocks ?"}}