diff options
| author | Misko Hevery | 2011-10-07 11:27:49 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:46 -0700 | 
| commit | fd822bdaf9d04e522aaa5400b673f333190abe98 (patch) | |
| tree | 451cd26d3f7da862692d6c56e6e8f235824c180a /test/jQueryPatchSpec.js | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'test/jQueryPatchSpec.js')
| -rw-r--r-- | test/jQueryPatchSpec.js | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/test/jQueryPatchSpec.js b/test/jQueryPatchSpec.js index 0953bdac..19f4d821 100644 --- a/test/jQueryPatchSpec.js +++ b/test/jQueryPatchSpec.js @@ -2,14 +2,14 @@  if (window.jQuery) { -  describe('jQuery patch', function(){ +  describe('jQuery patch', function() {      var doc = null;      var divSpy = null;      var spy1 = null;      var spy2 = null; -    beforeEach(function(){ +    beforeEach(function() {        divSpy = jasmine.createSpy('div.$destroy');        spy1 = jasmine.createSpy('span1.$destroy');        spy2 = jasmine.createSpy('span2.$destroy'); @@ -18,7 +18,7 @@ if (window.jQuery) {        doc.find('span.second').bind('$destroy', spy2);      }); -    afterEach(function(){ +    afterEach(function() {        expect(divSpy).not.toHaveBeenCalled();        expect(spy1).toHaveBeenCalled(); @@ -27,29 +27,29 @@ if (window.jQuery) {        expect(spy2.callCount).toEqual(1);      }); -    describe('$detach event', function(){ +    describe('$detach event', function() { -      it('should fire on detach()', function(){ +      it('should fire on detach()', function() {          doc.find('span').detach();        }); -      it('should fire on remove()', function(){ +      it('should fire on remove()', function() {          doc.find('span').remove();        }); -      it('should fire on replaceWith()', function(){ +      it('should fire on replaceWith()', function() {          doc.find('span').replaceWith('<b>bla</b>');        }); -      it('should fire on replaceAll()', function(){ +      it('should fire on replaceAll()', function() {          $('<b>bla</b>').replaceAll(doc.find('span'));        }); -      it('should fire on empty()', function(){ +      it('should fire on empty()', function() {          doc.empty();        }); -      it('should fire on html()', function(){ +      it('should fire on html()', function() {          doc.html('abc');        });      });  | 
