Updated short URL list params so that it requests dateCreated DESC ordering by default

This commit is contained in:
Alejandro Celaya
2020-09-12 17:59:58 +02:00
parent bd88e56331
commit f36cf1e7b9
4 changed files with 24 additions and 18 deletions

View File

@@ -3,9 +3,10 @@ import { shallow, ShallowWrapper } from 'enzyme';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCaretDown as caretDownIcon, faCaretUp as caretUpIcon } from '@fortawesome/free-solid-svg-icons';
import { Mock } from 'ts-mockery';
import shortUrlsListCreator, { ShortUrlsListProps, SORTABLE_FIELDS } from '../../src/short-urls/ShortUrlsList';
import shortUrlsListCreator, { ShortUrlsListProps} from '../../src/short-urls/ShortUrlsList';
import { ShortUrl } from '../../src/short-urls/data';
import { MercureBoundProps } from '../../src/mercure/helpers/boundToMercureHub';
import { SORTABLE_FIELDS } from '../../src/short-urls/reducers/shortUrlsListParams';
describe('<ShortUrlsList />', () => {
let wrapper: ShallowWrapper;