aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMisko Hevery2010-02-09 14:59:24 -0800
committerMisko Hevery2010-02-09 14:59:24 -0800
commit9d566fe98c3fa0091efef4adb0178f063da74f7c (patch)
treeb1803f28f9ba70e1f29d230b0ace3733811c1a14 /test
parent799d72931a5a01de74bba69d8a6638cd57cec315 (diff)
downloadangular.js-9d566fe98c3fa0091efef4adb0178f063da74f7c.tar.bz2
missing test
Diffstat (limited to 'test')
-rw-r--r--test/AngularSpec.js10
1 files changed, 10 insertions, 0 deletions
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("<div></div>", { onUpdateView: onUpdateView });
+ expect(onUpdateView).wasNotCalled();
+ scope.init();
+ scope.updateView();
+ expect(onUpdateView).wasCalled();
+ });
+}); \ No newline at end of file