From a7d62dcb5533ceb9a7ae47ee27e2054400a0196b Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 30 Mar 2010 14:55:04 -0700 Subject: more tests fixed --- test/directivesSpec.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/directivesSpec.js') 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(''); + expect(scope.items).toEqual([]); + }); + it('should error on wrong parsing of ng-repeat', function(){ var scope = compile(''); var log = ""; -- cgit v1.2.3