Fixed ordering dropdown to be shorter in short URLs filter

This commit is contained in:
Alejandro Celaya
2022-05-14 14:15:21 +02:00
parent b4c3bd16b1
commit 30aeba0af2
5 changed files with 124 additions and 103 deletions

View File

@@ -7,7 +7,6 @@ import SearchField from '../../src/utils/SearchField';
import Tag from '../../src/tags/helpers/Tag';
import { DateRangeSelector } from '../../src/utils/dates/DateRangeSelector';
import { ReachableServer, SelectedServer } from '../../src/servers/data';
import { TooltipToggleSwitch } from '../../src/utils/TooltipToggleSwitch';
import { OrderingDropdown } from '../../src/utils/OrderingDropdown';
jest.mock('react-router-dom', () => ({
@@ -17,6 +16,8 @@ jest.mock('react-router-dom', () => ({
useLocation: jest.fn().mockReturnValue({}),
}));
const TooltipToggleSwitch = () => null; // TODO Drop this!
describe('<ShortUrlsFilteringBar />', () => {
let wrapper: ShallowWrapper;
const ExportShortUrlsBtn = () => null;