mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-08 05:00:32 +01:00
26 lines
659 B
JavaScript
26 lines
659 B
JavaScript
'use strict';
|
|
|
|
(function() {
|
|
describe('MEAN controllers', function() {
|
|
describe('HeaderController', function() {
|
|
// Load the controllers module
|
|
beforeEach(module('mean'));
|
|
|
|
var scope, HeaderController;
|
|
|
|
beforeEach(inject(function($controller, $rootScope) {
|
|
scope = $rootScope.$new();
|
|
|
|
HeaderController = $controller('HeaderController', {
|
|
$scope: scope
|
|
});
|
|
}));
|
|
|
|
it('should expose some global scope', function() {
|
|
|
|
expect(scope.global).toBeTruthy();
|
|
|
|
});
|
|
});
|
|
});
|
|
})(); |