Fixed some tests after not injecting a component

This commit is contained in:
Alejandro Celaya 2020-01-31 20:04:03 +01:00
parent 535d08a607
commit 93f33b6218
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ describe('<CreateShortUrl />', () => {
const createShortUrl = jest.fn();
beforeEach(() => {
const CreateShortUrl = createShortUrlsCreator(TagsSelector, () => '');
const CreateShortUrl = createShortUrlsCreator(TagsSelector, () => '', () => '');
wrapper = shallow(
<CreateShortUrl shortUrlCreationResult={shortUrlCreationResult} createShortUrl={createShortUrl} />

View file

@ -9,7 +9,7 @@ import DateRangeRow from '../../src/utils/DateRangeRow';
describe('<SearchBar />', () => {
let wrapper;
const listShortUrlsMock = jest.fn();
const SearchBar = searchBarCreator({});
const SearchBar = searchBarCreator({}, () => '');
afterEach(() => {
listShortUrlsMock.mockReset();

View file

@ -17,7 +17,7 @@ describe('<ShortUrlsRowMenu />', () => {
shortUrl: 'https://doma.in/abc123',
};
const createWrapper = () => {
const ShortUrlsRowMenu = createShortUrlsRowMenu(DeleteShortUrlModal, EditTagsModal, EditMetaModal);
const ShortUrlsRowMenu = createShortUrlsRowMenu(DeleteShortUrlModal, EditTagsModal, EditMetaModal, () => '');
wrapper = shallow(
<ShortUrlsRowMenu