Files
meanTorrent/modules/core/tests/client/header.client.controller.tests.js

25 lines
549 B
JavaScript
Raw Normal View History

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
});
});
})();