aboutsummaryrefslogtreecommitdiffstats
path: root/test/directivesSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/directivesSpec.js')
-rw-r--r--test/directivesSpec.js5
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 = "";