mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-22 10:49:24 +08:00
Add test for toKeyValue() - true values should be composed to flag
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user