mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +00:00
10 lines
No EOL
334 B
JavaScript
10 lines
No EOL
334 B
JavaScript
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();
|
|
});
|
|
}); |