]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/ui/default/staff/test/unit/egHomeApp.js
LP#1350042 Browser client templates/scripts (phase 1)
[working/Evergreen.git] / Open-ILS / web / js / ui / default / staff / test / unit / egHomeApp.js
1 'use strict';
2
3 describe('egHomeControllers', function(){
4   beforeEach(module('egHome'));
5
6   /* ---- LoginCtrl ---------------------------------- */
7
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'});
12
13       loginScope = $rootScope.$new();
14       loginCtrl = $controller('LoginCtrl', {$scope: loginScope});
15   }));
16
17   it('should focus the login controller', inject(function() {
18     expect(loginScope.focusMe).toBe(true);
19   }));
20
21 });