mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
Add test for toKeyValue() - true values should be composed to flag
This commit is contained in:
parent
732bcd8a36
commit
46c6406b25
1 changed files with 4 additions and 0 deletions
|
|
@ -114,4 +114,8 @@ describe('toKeyValue', function() {
|
|||
toEqual('escaped%20key=escaped%20value');
|
||||
expect(toKeyValue({emptyKey: ''})).toEqual('emptyKey=');
|
||||
});
|
||||
|
||||
it('should parse true values into flags', function() {
|
||||
expect(toKeyValue({flag1: true, key: 'value', flag2: true})).toEqual('flag1&key=value&flag2');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue