reenabled more tests

This commit is contained in:
Misko Hevery
2010-03-29 21:49:12 -07:00
parent cc6def854f
commit d2d356918b
3 changed files with 70 additions and 92 deletions

View File

@@ -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');
});