mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-22 19:23:38 +08:00
committed by
Igor Minar
parent
267b217376
commit
c8e03e34b2
@@ -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'});
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -330,7 +330,7 @@ describe("resource", function() {
|
||||
|
||||
|
||||
it('should not throw TypeError on null default params', function() {
|
||||
$httpBackend.expect('GET', '/Path?').respond('{}');
|
||||
$httpBackend.expect('GET', '/Path').respond('{}');
|
||||
var R = $resource('/Path', {param: null}, {get: {method: 'GET'}});
|
||||
|
||||
expect(function() {
|
||||
|
||||
Reference in New Issue
Block a user