mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
missing test
This commit is contained in:
parent
799d72931a
commit
9d566fe98c
1 changed files with 10 additions and 0 deletions
10
test/AngularSpec.js
Normal file
10
test/AngularSpec.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
describe('Angular', function(){
|
||||
it('should fire on updateEvents', function(){
|
||||
var onUpdateView = jasmine.createSpy();
|
||||
var scope = angular.compile("<div></div>", { onUpdateView: onUpdateView });
|
||||
expect(onUpdateView).wasNotCalled();
|
||||
scope.init();
|
||||
scope.updateView();
|
||||
expect(onUpdateView).wasCalled();
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue