From 8d7e7127d7189f82e80f6a9dd010e2f6103857ee Mon Sep 17 00:00:00 2001 From: Santi Albo Date: Tue, 28 Jan 2014 17:15:15 +0000 Subject: [PATCH] Add a test --- restangular/restangular-tests.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/restangular/restangular-tests.ts b/restangular/restangular-tests.ts index 1bb4b01ee..22473e13e 100644 --- a/restangular/restangular-tests.ts +++ b/restangular/restangular-tests.ts @@ -136,3 +136,10 @@ function test_config() { }); }); } + +function test_withHttpConfig() { + var $scope; + Restangular.one('accounts', 123).withHttpConfig({timeout: 100}).getList('buildings'); + $scope.account = Restangular.one('accounts', 123); + $scope.account.withHttpConfig({timeout: 100}).put(); +}