2015-12-12 20:08:48 +00:00
|
|
|
'use strict';
|
2015-06-29 22:51:29 +00:00
|
|
|
|
2015-12-12 20:08:48 +00:00
|
|
|
(function() {
|
|
|
|
describe('HeaderController', function() {
|
|
|
|
//Initialize global variables
|
|
|
|
var scope,
|
|
|
|
HeaderController;
|
2015-06-29 22:51:29 +00:00
|
|
|
|
2015-12-12 20:08:48 +00:00
|
|
|
// Load the main application module
|
|
|
|
beforeEach(module(ApplicationConfiguration.applicationModuleName));
|
2015-06-29 22:51:29 +00:00
|
|
|
|
2015-12-12 20:08:48 +00:00
|
|
|
beforeEach(inject(function($controller, $rootScope) {
|
|
|
|
scope = $rootScope.$new();
|
2015-06-29 22:51:29 +00:00
|
|
|
|
2015-12-12 20:08:48 +00:00
|
|
|
HeaderController = $controller('HeaderController', {
|
|
|
|
$scope: scope
|
|
|
|
});
|
|
|
|
}));
|
2015-06-29 22:51:29 +00:00
|
|
|
|
2015-12-12 20:08:48 +00:00
|
|
|
it('should expose the authentication service', function() {
|
|
|
|
expect(scope.authentication).toBeTruthy();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})();
|