mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
reenabled more tests
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user