Mercurial > hg > thermostat-ng > web-client
changeset 209:eebc9b8f9e61
Remove unused $scope from test
Reviewed-by: jkang
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/025051.html
author | Andrew Azores <aazores@redhat.com> |
---|---|
date | Mon, 18 Sep 2017 12:10:54 -0400 |
parents | 0f0ca4f48c22 |
children | f058b116e664 |
files | src/app/components/about/about.controller.spec.js |
diffstat | 1 files changed, 4 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/components/about/about.controller.spec.js Mon Sep 18 10:35:51 2017 -0400 +++ b/src/app/components/about/about.controller.spec.js Mon Sep 18 12:10:54 2017 -0400 @@ -29,20 +29,15 @@ describe('AboutController', () => { - let ctrl, authSvc, scope; + let ctrl, authSvc; beforeEach(() => { angular.mock.module(controllerModule); - angular.mock.inject(($controller, $rootScope) => { + angular.mock.inject($controller => { 'ngInject'; - authSvc = { - username: 'fake-username' - }; - scope = $rootScope.$new(); - + authSvc = { username: 'fake-username' }; ctrl = $controller('AboutController', { - authService: authSvc, - $scope: scope + authService: authSvc }); }); });