Files
roboto-promoto/test/client/spec/controllers/navbar.js
2014-03-31 09:28:33 +01:00

23 lines
520 B
JavaScript

'use strict';
describe('Controller: NavbarCtrl', function () {
// load the controller's module
beforeEach(module('robotoPromotoApp'));
var NavbarCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
NavbarCtrl = $controller('NavbarCtrl', {
$scope: scope
});
}));
it('should attach a list of awesomeThings to the scope', function () {
expect(scope.awesomeThings.length).toBe(3);
});
});