Move api into a folder

This commit is contained in:
Chewbacca 2022-11-15 08:43:26 -05:00
parent 8b22ca5f27
commit a202fe68d1
3 changed files with 22 additions and 22 deletions

View file

@ -4,7 +4,7 @@ import LinkHeader from 'http-link-header';
import type { AxiosInstance, AxiosResponse } from 'axios';
const api = jest.requireActual('../api') as Record<string, Function>;
const api = jest.requireActual('../index') as Record<string, Function>;
let mocks: Array<Function> = [];
export const __stub = (func: (mock: MockAdapter) => void) => mocks.push(func);

View file

@ -1,6 +1,6 @@
'use strict';
import { __clear as clearApiMocks } from '../__mocks__/api';
import { __clear as clearApiMocks } from '../api/__mocks__';
// API mocking
jest.mock('soapbox/api');