Fix API mock in verification test
This commit is contained in:
parent
8cef636093
commit
9b7f8b3816
|
@ -9,7 +9,7 @@ export const __stub = (func: Function) => mocks.push(func);
|
|||
export const __clear = (): Function[] => mocks = [];
|
||||
|
||||
const setupMock = (axios: AxiosInstance) => {
|
||||
const mock = new MockAdapter(axios);
|
||||
const mock = new MockAdapter(axios, { onNoMatch: 'throwException' });
|
||||
mocks.map(func => func(mock));
|
||||
};
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@ import { Map as ImmutableMap } from 'immutable';
|
|||
import React from 'react';
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
|
||||
import { __stub } from '../../../__mocks__/api';
|
||||
import { __stub } from 'soapbox/api';
|
||||
|
||||
import { render, screen } from '../../../jest/test-helpers';
|
||||
import Verification from '../index';
|
||||
|
||||
|
|
Loading…
Reference in New Issue