aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngResource
diff options
context:
space:
mode:
Diffstat (limited to 'test/ngResource')
-rw-r--r--test/ngResource/resourceSpec.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ngResource/resourceSpec.js b/test/ngResource/resourceSpec.js
index 916fa455..ec7f1476 100644
--- a/test/ngResource/resourceSpec.js
+++ b/test/ngResource/resourceSpec.js
@@ -205,6 +205,16 @@ describe("resource", function() {
});
+ it('should not throw TypeError on null default params', function() {
+ $httpBackend.expect('GET', '/Path?').respond('{}');
+ var R = $resource('/Path', {param: null}, {get: {method: 'GET'}});
+
+ expect(function() {
+ R.get({});
+ }).not.toThrow();
+ });
+
+
it('should handle multiple params with same name', function() {
var R = $resource('/:id/:id');