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('')($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('')($rootScope);