Ensured filter for bots does not show for Shlink older than 2.7.0

This commit is contained in:
Alejandro Celaya
2021-06-22 21:01:20 +02:00
parent 638ce89780
commit affe2309b0
5 changed files with 39 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ import { SimpleCard } from '../../src/utils/SimpleCard';
describe('<ShortUrlForm />', () => {
let wrapper: ShallowWrapper;
const TagsSelector = () => null;
const createShortUrl = jest.fn();
const createShortUrl = jest.fn(async () => Promise.resolve());
const createWrapper = (selectedServer: SelectedServer = null, mode: Mode = 'create') => {
const ShortUrlForm = createShortUrlForm(TagsSelector, () => null);