diff options
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/test/AngularSpec.js b/test/AngularSpec.js index f6796496..62ea31d9 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -461,6 +461,13 @@ describe('angular', function() {        expect(log).toEqual(['0:a', '1:b', '2:c']);      }); +    it('should handle string values like arrays', function() { +      var log = []; + +      forEach('bar', function(value, key) { log.push(key + ':' + value)}); +      expect(log).toEqual(['0:b', '1:a', '2:r']); +    }); +      it('should handle objects with length property as objects', function() {        var obj = { | 
