diff options
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index 632724ce..e21eb64a 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -501,6 +501,14 @@ describe('widget', function() {        expect(element.text()).toBe('a|b|||c||d|');      })); +    it('should iterate over all kinds of types', inject(function($rootScope, $compile) { +      var element = $compile('<ul><li ng:repeat="item in array">{{item}}|</li></ul>')($rootScope); +      $rootScope.array = ['a', 1, null, undefined, {}]; +      $rootScope.$digest(); + +      expect(element.text()).toBe('a|1|||{\n  }|'); +    })); +      it('should iterate over all kinds of types', inject(function($rootScope, $compile) {        var element = $compile('<ul><li ng:repeat="item in array">{{item}}|</li></ul>')($rootScope);  | 
