diff options
| author | Misko Hevery | 2010-07-23 10:48:18 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-07-23 10:48:18 -0700 | 
| commit | 8015e09e383bcd3ebf85d44cd68c67dd85db5771 (patch) | |
| tree | c8436accb1fb31dd043bc560f626aaee30e3f1a6 /test/ScopeSpec.js | |
| parent | 2987f7f705baffad8081fc4a3a95eab79b0d9695 (diff) | |
| download | angular.js-8015e09e383bcd3ebf85d44cd68c67dd85db5771.tar.bz2 | |
added buzz demo, fix undefined() -> undefined
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(); | 
