Skip to content

Commit

Permalink
docs(tutorial): fix controller unit tests to match phonecat / avoid R…
Browse files Browse the repository at this point in the history
…eferenceError

fix 'ReferenceError: PhoneDetailCtrl is not defined' & 'ReferenceError: PhoneListCtrl is not defined' in Karma unit tests

Closes angular#7421
  • Loading branch information
TimvdEijnden authored and caitp committed May 21, 2014
1 parent b64c709 commit d3163ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/tutorial/step_11.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ describe('PhoneCat controllers', function() {
respond([{name: 'Nexus S'}, {name: 'Motorola DROID'}]);

scope = $rootScope.$new();
ctrl = $controller(PhoneListCtrl, {$scope: scope});
ctrl = $controller('PhoneListCtrl', {$scope: scope});
}));


Expand Down Expand Up @@ -237,7 +237,7 @@ describe('PhoneCat controllers', function() {

$routeParams.phoneId = 'xyz';
scope = $rootScope.$new();
ctrl = $controller(PhoneDetailCtrl, {$scope: scope});
ctrl = $controller('PhoneDetailCtrl', {$scope: scope});
}));


Expand Down

0 comments on commit d3163ff

Please sign in to comment.