mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Add a test
This commit is contained in:
1 parent
aa19aca412
commit
8d7e7127d7
1 file changed
+7
@@ -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