Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- escribe('myControllers', function () {
- beforeEach(module('myApp', [ 'ngRoute', 'ngMdIcons']));
- describe('AboutController', function () {
- var controller, scope, route;
- beforeEach(inject(function ($rootScope, $route, $controller) {
- scope = $rootScope.$new();
- route = $route;
- controller = $controller('AboutController', {
- $scope: scope
- });
- }));
- it('should ...', function () {
- expect(controller).toBeDefined();
- expect(scope.template).toBe(route.routes['/about'].templateUrl);
- });
- it('should create a "profile" model with 4 keys', function () {
- expect(scope.profile.length(4));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement