Exported some specific component types and improved spacing in short URLs list

This commit is contained in:
Alejandro Celaya
2022-12-18 10:12:34 +01:00
parent f4cf4850a3
commit 90837546ab
9 changed files with 33 additions and 22 deletions

View File

@@ -18,9 +18,11 @@ describe('<Paginator />', () => {
[buildPaginator()],
[buildPaginator(0)],
[buildPaginator(1)],
])('renders nothing if the number of pages is below 2', (paginator) => {
])('renders an empty gap if the number of pages is below 2', (paginator) => {
const { container } = setUp(paginator);
expect(container.firstChild).toBeNull();
expect(container.firstChild).toBeEmpty();
expect(container.firstChild).toHaveClass('pb-3');
});
it.each([