Skip to content

Commit c381461

Browse files
author
Brendan Mulholland
committed
Use new adapter setting
See axios/axios#5277
1 parent 344458b commit c381461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useNotifications.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { mockedUser } from '../__mocks__/mockedData';
99

1010
describe('hooks/useNotifications.ts', () => {
1111
beforeEach(() => {
12-
axios.defaults.adapter = require('axios/lib/adapters/http');
12+
axios.defaults.adapter = 'http';
1313
});
1414

1515
describe('fetchNotifications', () => {

0 commit comments

Comments
 (0)