mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-16 12:33:48 +00:00
Fixed some tests after not injecting a component
This commit is contained in:
@@ -14,7 +14,7 @@ describe('<CreateShortUrl />', () => {
|
|||||||
const createShortUrl = jest.fn();
|
const createShortUrl = jest.fn();
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const CreateShortUrl = createShortUrlsCreator(TagsSelector, () => '');
|
const CreateShortUrl = createShortUrlsCreator(TagsSelector, () => '', () => '');
|
||||||
|
|
||||||
wrapper = shallow(
|
wrapper = shallow(
|
||||||
<CreateShortUrl shortUrlCreationResult={shortUrlCreationResult} createShortUrl={createShortUrl} />
|
<CreateShortUrl shortUrlCreationResult={shortUrlCreationResult} createShortUrl={createShortUrl} />
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import DateRangeRow from '../../src/utils/DateRangeRow';
|
|||||||
describe('<SearchBar />', () => {
|
describe('<SearchBar />', () => {
|
||||||
let wrapper;
|
let wrapper;
|
||||||
const listShortUrlsMock = jest.fn();
|
const listShortUrlsMock = jest.fn();
|
||||||
const SearchBar = searchBarCreator({});
|
const SearchBar = searchBarCreator({}, () => '');
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
listShortUrlsMock.mockReset();
|
listShortUrlsMock.mockReset();
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ describe('<ShortUrlsRowMenu />', () => {
|
|||||||
shortUrl: 'https://doma.in/abc123',
|
shortUrl: 'https://doma.in/abc123',
|
||||||
};
|
};
|
||||||
const createWrapper = () => {
|
const createWrapper = () => {
|
||||||
const ShortUrlsRowMenu = createShortUrlsRowMenu(DeleteShortUrlModal, EditTagsModal, EditMetaModal);
|
const ShortUrlsRowMenu = createShortUrlsRowMenu(DeleteShortUrlModal, EditTagsModal, EditMetaModal, () => '');
|
||||||
|
|
||||||
wrapper = shallow(
|
wrapper = shallow(
|
||||||
<ShortUrlsRowMenu
|
<ShortUrlsRowMenu
|
||||||
|
|||||||
Reference in New Issue
Block a user