mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-29 08:49:06 +08:00
10 lines
334 B
JavaScript
10 lines
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();
|
|
});
|
|
}); |