diff options
Diffstat (limited to 'test/ScopeSpec.js')
| -rw-r--r-- | test/ScopeSpec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ScopeSpec.js b/test/ScopeSpec.js index d93400e5..013b1bfc 100644 --- a/test/ScopeSpec.js +++ b/test/ScopeSpec.js @@ -15,6 +15,11 @@ describe('scope/model', function(){ expect(model.$root).toEqual(model); }); + it('should return noop function when LHS is undefined', function(){ + var model = createScope(); + expect(model.$eval('x.$filter()')).toEqual(undefined); + }); + describe('$eval', function(){ it('should eval function with correct this and pass arguments', function(){ var model = createScope(); |
