Move api into a folder
This commit is contained in:
parent
8b22ca5f27
commit
a202fe68d1
3 changed files with 22 additions and 22 deletions
|
@ -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);
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue