aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/xhr.errorSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-10-07 11:27:49 -0700
committerIgor Minar2011-10-11 11:01:46 -0700
commitfd822bdaf9d04e522aaa5400b673f333190abe98 (patch)
tree451cd26d3f7da862692d6c56e6e8f235824c180a /test/service/xhr.errorSpec.js
parent4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff)
downloadangular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2
chore(formating): clean code to be function() {
Diffstat (limited to 'test/service/xhr.errorSpec.js')
-rw-r--r--test/service/xhr.errorSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/service/xhr.errorSpec.js b/test/service/xhr.errorSpec.js
index 6cc7fce0..49b63fd0 100644
--- a/test/service/xhr.errorSpec.js
+++ b/test/service/xhr.errorSpec.js
@@ -3,7 +3,7 @@
describe('$xhr.error', function() {
var scope, $browser, $browserXhr, $xhr, $xhrError, log;
- beforeEach(function(){
+ beforeEach(function() {
scope = angular.scope(angular.service, {
'$xhr.error': $xhrError = jasmine.createSpy('$xhr.error')
});
@@ -14,7 +14,7 @@ describe('$xhr.error', function() {
});
- afterEach(function(){
+ afterEach(function() {
dealoc(scope);
});
@@ -25,7 +25,7 @@ describe('$xhr.error', function() {
}
- it('should handle non 200 status codes by forwarding to error handler', function(){
+ it('should handle non 200 status codes by forwarding to error handler', function() {
$browserXhr.expectPOST('/req', 'MyData').respond(500, 'MyError');
$xhr('POST', '/req', 'MyData', callback);
$browserXhr.flush();