Controlador angular de teste

Depois de ver como testar um serviço, vamos falar sobre como testar um controlador. function MyController(MyService) { this.greetUpperCase = function(name) { return MyService.greet(name).toUpperCase(); }} Gostaríamos que o DI do angular …

Continuar lendo