Skip to content

Commit d7cb4a7

Browse files
committed
Missing unit test
There was a missing test for `mainImageUrl`. There is a pull request as well for the doc: angular/angular.js#13152
1 parent 5e54104 commit d7cb4a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/controllersSpec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ describe('PhoneCat controllers', function() {
6666
expect(scope.phone).toEqualData({});
6767
$httpBackend.flush();
6868

69-
expect(scope.phone).toEqualData(xyzPhoneData());
69+
var xyzPhoneInstance = xyzPhoneData();
70+
expect(scope.phone).toEqual(xyzPhoneInstance);
71+
expect(scope.mainImageUrl).toEqual(xyzPhoneInstance.images[0]);
7072
});
7173
});
7274
});

0 commit comments

Comments
 (0)