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/service/xhr.cacheSpec.js | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'test/service/xhr.cacheSpec.js')
| -rw-r--r-- | test/service/xhr.cacheSpec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/service/xhr.cacheSpec.js b/test/service/xhr.cacheSpec.js index c6b9cfec..0c77e629 100644 --- a/test/service/xhr.cacheSpec.js +++ b/test/service/xhr.cacheSpec.js @@ -12,7 +12,7 @@ describe('$xhr.cache', function() { }); - afterEach(function(){ + afterEach(function() { dealoc(scope); }); @@ -23,7 +23,7 @@ describe('$xhr.cache', function() { } - it('should cache requests', function(){ + it('should cache requests', function() { $browserXhr.expectGET('/url').respond('first'); cache('GET', '/url', null, callback); $browserXhr.flush(); @@ -39,7 +39,7 @@ describe('$xhr.cache', function() { }); - it('should first return cache request, then return server request', function(){ + it('should first return cache request, then return server request', function() { $browserXhr.expectGET('/url').respond('first'); cache('GET', '/url', null, callback, true); $browserXhr.flush(); @@ -54,7 +54,7 @@ describe('$xhr.cache', function() { }); - it('should serve requests from cache', function(){ + it('should serve requests from cache', function() { cache.data.url = {value:'123'}; cache('GET', 'url', null, callback); $browser.defer.flush(); @@ -66,7 +66,7 @@ describe('$xhr.cache', function() { }); - it('should keep track of in flight requests and request only once', function(){ + it('should keep track of in flight requests and request only once', function() { scope.$service('$xhr.bulk').urls['/bulk'] = { match:function(url){ return url == '/url'; @@ -85,7 +85,7 @@ describe('$xhr.cache', function() { }); - it('should clear cache on non GET', function(){ + it('should clear cache on non GET', function() { $browserXhr.expectPOST('abc', {}).respond({}); cache.data.url = {value:123}; cache('POST', 'abc', {}); |
