mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
revert: fix(Angular.js): toKeyValue is not serializing null values
This commit contained broken tests and was not ready to be merged.
(reverted from commit 814c9847e8)
This commit is contained in:
@@ -491,14 +491,6 @@ describe('angular', function() {
|
||||
expect(toKeyValue({key: [323,'value',true, 1234]})).
|
||||
toEqual('key=323&key=value&key&key=1234');
|
||||
});
|
||||
|
||||
it('should not serialize null values', function() {
|
||||
expect(toKeyValue({nullKey: null, key: 'value'})).toEqual('key=value');
|
||||
});
|
||||
|
||||
it('should not serialize undefined', function() {
|
||||
expect(toKeyValue({undefinedKey: undefined, key: 'value'})).toEqual('key=value');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user