diff options
| author | Misko Hevery | 2010-02-09 14:59:24 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-02-09 14:59:24 -0800 |
| commit | 9d566fe98c3fa0091efef4adb0178f063da74f7c (patch) | |
| tree | b1803f28f9ba70e1f29d230b0ace3733811c1a14 /test | |
| parent | 799d72931a5a01de74bba69d8a6638cd57cec315 (diff) | |
| download | angular.js-9d566fe98c3fa0091efef4adb0178f063da74f7c.tar.bz2 | |
missing test
Diffstat (limited to 'test')
| -rw-r--r-- | test/AngularSpec.js | 10 |
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 |
