From dde306b8d4c3f0494b5769cff316e11d1c7f15d6 Mon Sep 17 00:00:00 2001 From: Sandor Major Date: Thu, 22 Oct 2015 16:34:02 +0200 Subject: [PATCH] docs(tutorial/10 - Event Handlers): describe your change... In the doc there stands "You also have to refactor one of your unit tests because of the addition of the `mainImageUrl` model property" but the spec was missing the test of `mainImageUrl` --- docs/content/tutorial/step_10.ngdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/tutorial/step_10.ngdoc b/docs/content/tutorial/step_10.ngdoc index fd073a5c9d41..bfe1f6825241 100644 --- a/docs/content/tutorial/step_10.ngdoc +++ b/docs/content/tutorial/step_10.ngdoc @@ -138,7 +138,9 @@ __`test/unit/controllersSpec.js`:__ expect(scope.phone).toBeUndefined(); $httpBackend.flush(); - expect(scope.phone).toEqual(xyzPhoneData()); + var xyzPhoneInstance = xyzPhoneData(); + expect(scope.phone).toEqual(xyzPhoneInstance); + expect(scope.mainImageUrl).toEqual(xyzPhoneInstance.images[0]); }); }); ```