mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-19 04:56:17 +00:00
Fix incorrect types between testing library and vitest
This commit is contained in:
@@ -20,8 +20,6 @@ describe('<DateIntervalDropdownItems />', () => {
|
||||
return { user, ...renderResult };
|
||||
};
|
||||
|
||||
afterEach(vi.clearAllMocks);
|
||||
|
||||
it('renders expected amount of items', async () => {
|
||||
await setUp();
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@ describe('<DateRangeRow />', () => {
|
||||
<DateRangeRow onEndDateChange={onEndDateChange} onStartDateChange={onStartDateChange} />,
|
||||
);
|
||||
|
||||
afterEach(vi.clearAllMocks);
|
||||
|
||||
it('renders two date inputs', () => {
|
||||
setUp();
|
||||
expect(screen.getAllByRole('textbox')).toHaveLength(2);
|
||||
|
||||
@@ -22,8 +22,6 @@ describe('<DateRangeSelector />', () => {
|
||||
return result;
|
||||
};
|
||||
|
||||
afterEach(vi.clearAllMocks);
|
||||
|
||||
it('renders proper amount of items', async () => {
|
||||
const { container } = await setUp();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user