Created ManageServersRowDropdown test

This commit is contained in:
Alejandro Celaya
2021-10-23 10:55:52 +02:00
parent c7c32b494e
commit 8618519b6b
8 changed files with 93 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ describe('<ShortUrlsList />', () => {
it('invokes order icon rendering', () => {
const renderIcon = (field: OrderableFields) =>
(wrapper.find(ShortUrlsTable).prop('renderOrderIcon') as (field: OrderableFields) => ReactElement | null)(field); // eslint-disable-line @typescript-eslint/no-unnecessary-type-assertion
(wrapper.find(ShortUrlsTable).prop('renderOrderIcon') as (field: OrderableFields) => ReactElement | null)(field);
expect(renderIcon('visits')).toEqual(null);