diff options
Diffstat (limited to 'test/ng')
| -rw-r--r-- | test/ng/httpSpec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ng/httpSpec.js b/test/ng/httpSpec.js index d446a80c..192fde5c 100644 --- a/test/ng/httpSpec.js +++ b/test/ng/httpSpec.js @@ -456,6 +456,11 @@ describe('$http', function() { $httpBackend.expect('GET', '/Path?!do%26h=g%3Da+h&:bar=$baz@1').respond(''); $http({url: '/Path', params: {':bar': '$baz@1', '!do&h': 'g=a h'}, method: 'GET'}); }); + + it('should not add question mark when params is empty', function() { + $httpBackend.expect('GET', '/url').respond(''); + $http({url: '/url', params: {}, method: 'GET'}); + }) }); |
