From 9d566fe98c3fa0091efef4adb0178f063da74f7c Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 9 Feb 2010 14:59:24 -0800 Subject: missing test --- test/AngularSpec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/AngularSpec.js diff --git a/test/AngularSpec.js b/test/AngularSpec.js new file mode 100644 index 00000000..65a32279 --- /dev/null +++ b/test/AngularSpec.js @@ -0,0 +1,10 @@ +describe('Angular', function(){ + it('should fire on updateEvents', function(){ + var onUpdateView = jasmine.createSpy(); + var scope = angular.compile("
", { onUpdateView: onUpdateView }); + expect(onUpdateView).wasNotCalled(); + scope.init(); + scope.updateView(); + expect(onUpdateView).wasCalled(); + }); +}); \ No newline at end of file -- cgit v1.2.3