2014-02-10 13:09:31 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
(function() {
|
2014-04-02 19:34:32 +03:00
|
|
|
describe('HeaderController', function() {
|
|
|
|
|
//Initialize global variables
|
|
|
|
|
var scope,
|
|
|
|
|
HeaderController;
|
2014-02-10 13:09:31 +02:00
|
|
|
|
2014-04-02 19:34:32 +03:00
|
|
|
// Load the main application module
|
|
|
|
|
beforeEach(module(ApplicationConfiguration.applicationModuleName));
|
2014-02-10 13:09:31 +02:00
|
|
|
|
2014-04-02 19:34:32 +03:00
|
|
|
beforeEach(inject(function($controller, $rootScope) {
|
|
|
|
|
scope = $rootScope.$new();
|
2014-02-10 13:09:31 +02:00
|
|
|
|
2014-04-02 19:34:32 +03:00
|
|
|
HeaderController = $controller('HeaderController', {
|
|
|
|
|
$scope: scope
|
2014-02-10 13:09:31 +02:00
|
|
|
});
|
2014-04-02 19:34:32 +03:00
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
it('should expose the authentication service', function() {
|
|
|
|
|
expect(scope.authentication).toBeTruthy();
|
2014-02-10 13:09:31 +02:00
|
|
|
});
|
|
|
|
|
});
|
2015-02-16 21:35:33 +01:00
|
|
|
})();
|