aboutsummaryrefslogtreecommitdiffstats
path: root/test/AngularSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/AngularSpec.js')
-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