2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-22 10:08:55 +00:00

Add some type hinting post-package update for Axios

This commit is contained in:
Adam Weeden 2023-03-24 16:47:54 -04:00
parent 6c867925bb
commit dacfcd2cb8

View File

@ -1,4 +1,4 @@
import axios, { AxiosResponse } from 'axios';
import axios, { AxiosResponse, InternalAxiosRequestConfig } from 'axios';
import { inferTitle } from './inferTitle';
@ -14,7 +14,8 @@ test('it returns the correct title', async () => {
status: 200,
statusText: 'OK',
headers: {},
config: {},
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
config: {} as unknown as InternalAxiosRequestConfig<unknown>,
};
axiosGetMock.mockResolvedValue(mockedResponse);
const result = await inferTitle('someurl');