From adfdca3e02facafef7f2318b13daf6812ecdef9a Mon Sep 17 00:00:00 2001 From: Brendan Mulholland Date: Mon, 2 Oct 2023 10:45:26 +0200 Subject: [PATCH] Use new adapter setting See https://github.com/axios/axios/pull/5277 --- src/hooks/useNotifications.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useNotifications.test.ts b/src/hooks/useNotifications.test.ts index b9ab59296..593689b4a 100644 --- a/src/hooks/useNotifications.test.ts +++ b/src/hooks/useNotifications.test.ts @@ -9,7 +9,7 @@ import { mockedUser } from '../__mocks__/mockedData'; describe('hooks/useNotifications.ts', () => { beforeEach(() => { - axios.defaults.adapter = require('axios/lib/adapters/http'); + axios.defaults.adapter = 'http'; }); describe('fetchNotifications', () => {