aboutsummaryrefslogtreecommitdiffstats
path: root/test/ScopeSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-29 21:49:12 -0700
committerMisko Hevery2010-03-29 21:49:12 -0700
commitd2d356918bd1c0c76673d22ff85c617fbd85d40e (patch)
tree994e3d03d86c53a1872a78d07ce4fcf3d28db3ed /test/ScopeSpec.js
parentcc6def854f2c77d0a7fea177df0dca858b8cd943 (diff)
downloadangular.js-d2d356918bd1c0c76673d22ff85c617fbd85d40e.tar.bz2
reenabled more tests
Diffstat (limited to 'test/ScopeSpec.js')
-rw-r--r--test/ScopeSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ScopeSpec.js b/test/ScopeSpec.js
index cfae42a8..1e50b275 100644
--- a/test/ScopeSpec.js
+++ b/test/ScopeSpec.js
@@ -29,7 +29,7 @@ describe('scope/model', function(){
expect(model.name).toEqual('works');
});
- //$onEval
+ //$watch
it('should watch an expression for change', function(){
var model = createScope();
model.oldValue = "";
@@ -42,7 +42,7 @@ describe('scope/model', function(){
});
model.name = 'misko';
model.$eval();
- expect(count).toEqual(1);
+ expect(count).toEqual(2); // since watches trigger $eval
expect(model.newValue).toEqual('misko');
expect(model.oldValue).toEqual('adam');
});