diff --git a/docs/content/tutorial/step_08.ngdoc b/docs/content/tutorial/step_08.ngdoc index c49163c30562..fef66e7bb6db 100644 --- a/docs/content/tutorial/step_08.ngdoc +++ b/docs/content/tutorial/step_08.ngdoc @@ -134,7 +134,10 @@ __`test/unit/controllersSpec.js`:__ beforeEach(inject(function(_$httpBackend_, $rootScope, $routeParams, $controller) { $httpBackend = _$httpBackend_; - $httpBackend.expectGET('phones/xyz.json').respond({name:'phone xyz'}); + $httpBackend.expectGET('phones/xyz.json').respond({ + name:'phone xyz', + images: ['image/url1.png', 'image/url2.png'] + }); $routeParams.phoneId = 'xyz'; scope = $rootScope.$new(); @@ -146,7 +149,10 @@ __`test/unit/controllersSpec.js`:__ expect(scope.phone).toBeUndefined(); $httpBackend.flush(); - expect(scope.phone).toEqual({name:'phone xyz'}); + expect(scope.phone).toEqual({ + name:'phone xyz', + images: ['image/url1.png', 'image/url2.png'] + }); }); }); ...