3 describe('egHomeControllers', function(){
4 beforeEach(module('egHome'));
6 /* ---- LoginCtrl ---------------------------------- */
8 var loginCtrl, loginScope;
9 beforeEach(inject(function ($rootScope, $controller, $location) {
10 // pass the workstation name via (mock) URL param
11 $location.search({ws : 'TestWorkstation'});
13 loginScope = $rootScope.$new();
14 loginCtrl = $controller('LoginCtrl', {$scope: loginScope});
17 it('should focus the login controller', inject(function() {
18 expect(loginScope.focusMe).toBe(true);