diff options
| author | Misko Hevery | 2010-03-30 14:55:04 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-03-30 14:55:04 -0700 |
| commit | a7d62dcb5533ceb9a7ae47ee27e2054400a0196b (patch) | |
| tree | 4c3702dbf899a8c669b833157b86a883c55d77ba /test/directivesSpec.js | |
| parent | d2d356918bd1c0c76673d22ff85c617fbd85d40e (diff) | |
| download | angular.js-a7d62dcb5533ceb9a7ae47ee27e2054400a0196b.tar.bz2 | |
more tests fixed
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 343698af..4eef1ac3 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -80,6 +80,11 @@ describe("directives", function(){ expect(element.text()).toEqual('misko:swe;shyam:set;'); }); + it('should set ng-repeat to [] if undefinde', function(){ + var scope = compile('<ul><li ng-repeat="item in items"></li></ul>'); + expect(scope.items).toEqual([]); + }); + it('should error on wrong parsing of ng-repeat', function(){ var scope = compile('<ul><li ng-repeat="i dont parse"></li></ul>'); var log = ""; |
