missing test

This commit is contained in:
Misko Hevery 2010-02-09 14:59:24 -08:00
parent 799d72931a
commit 9d566fe98c

10
test/AngularSpec.js Normal file
View 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();
});
});