docs(tutorial): fix controller unit tests to match phonecat / avoid ReferenceError

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

Closes #7421
This commit is contained in:
Tim van den Eijnden
2014-05-10 17:09:52 +02:00
committed by Caitlin Potter
parent b64c709808
commit d3163ff1cf

View File

@@ -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});
}));
@@ -237,7 +237,7 @@ describe('PhoneCat controllers', function() {
$routeParams.phoneId = 'xyz';
scope = $rootScope.$new();
ctrl = $controller(PhoneDetailCtrl, {$scope: scope});
ctrl = $controller('PhoneDetailCtrl', {$scope: scope});
}));