aboutsummaryrefslogtreecommitdiffstats
path: root/__mocks__
diff options
context:
space:
mode:
Diffstat (limited to '__mocks__')
-rw-r--r--__mocks__/@nextcloud/axios.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/__mocks__/@nextcloud/axios.ts b/__mocks__/@nextcloud/axios.ts
index e9a440f4747..35cb11bcabf 100644
--- a/__mocks__/@nextcloud/axios.ts
+++ b/__mocks__/@nextcloud/axios.ts
@@ -19,8 +19,20 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
+import type { AxiosInterceptorManager, AxiosResponse, InternalAxiosRequestConfig } from 'axios'
+
export default {
get: async () => ({ status: 200, data: {} }),
delete: async () => ({ status: 200, data: {} }),
post: async () => ({ status: 200, data: {} }),
+
+ interceptors: {
+ request: {
+ use: () => {},
+ } as AxiosInterceptorManager<InternalAxiosRequestConfig>,
+ response: {
+ use: () => {},
+ } as AxiosInterceptorManager<AxiosResponse>,
+ }
}