mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
style(*): disallow space after object keys, other rules
add `disallowSpaceAfterObjectKeys` and associated changes. add `disallowMixedSpacesAndTabs` (no files changed) add `disallowMultipleLineStrings` (no files changed) Closes #9679
This commit is contained in:
committed by
Peter Bacon Darwin
parent
b64b9ea02c
commit
ed3f799b5c
@@ -711,15 +711,15 @@ describe('$http', function() {
|
||||
});
|
||||
|
||||
it('should NOT delete Content-Type header if request data/body is set by request transform', function() {
|
||||
$httpBackend.expect('POST', '/url', {'one' : 'two'}, function(headers) {
|
||||
$httpBackend.expect('POST', '/url', {'one': 'two'}, function(headers) {
|
||||
return headers['Content-Type'] == 'application/json;charset=utf-8';
|
||||
}).respond('');
|
||||
|
||||
$http({
|
||||
url: '/url',
|
||||
method: 'POST',
|
||||
transformRequest : function(data) {
|
||||
data = {'one' : 'two'};
|
||||
transformRequest: function(data) {
|
||||
data = {'one': 'two'};
|
||||
return data;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user