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 d2867d09..3b53c7d2 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -429,6 +429,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()).toMatch(/a\|1\|\|\|\{\s*\}\|/); +    })); +      describe('stability', function() {        var a, b, c, d, lis, element;  | 
