import axios from 'axios'; import { inferTitle } from './inferTitle'; test('it returns the correct title', async () => { const axiosGetMock = jest.spyOn(axios, 'get'); axiosGetMock.mockResolvedValue({ data: `