angular-material-sidenav
Version:
Component that build the same sidenav from official angular material website
23 lines (16 loc) • 517 B
JavaScript
;
describe('Controller: CommonCtrl', function () {
var controller, scope;
// load the controller's module
beforeEach(module('demoApp'));
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
controller = $controller('CommonCtrl', {
$scope: scope
});
}));
it('Assign a menu to the controller', function () {
expect(scope.menu).toBeDefined();
});
});