diff options
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 64fd8997..255da3bb 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -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'); +  });  });  | 
