aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScopeSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-07-23 10:48:18 -0700
committerMisko Hevery2010-07-23 10:48:18 -0700
commit8015e09e383bcd3ebf85d44cd68c67dd85db5771 (patch)
treec8436accb1fb31dd043bc560f626aaee30e3f1a6 /test/ScopeSpec.js
parent2987f7f705baffad8081fc4a3a95eab79b0d9695 (diff)
downloadangular.js-8015e09e383bcd3ebf85d44cd68c67dd85db5771.tar.bz2
added buzz demo, fix undefined() -> undefined
Diffstat (limited to 'test/ScopeSpec.js')
-rw-r--r--test/ScopeSpec.js5
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();