mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add a test
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user