mirror of
https://github.com/Unleash/unleash.git
synced 2026-02-04 20:10:52 +01:00
clean up test more
This commit is contained in:
parent
b61a749903
commit
ecb6f4bc13
@ -19,8 +19,8 @@ const setup = (
|
||||
const recordedChanges: FilterItemParams[] = [];
|
||||
|
||||
const mockProps: IFilterDateItemProps = {
|
||||
name: name ?? 'Date To',
|
||||
label: label ?? 'Date To',
|
||||
name: name ?? 'Test Label',
|
||||
label: label ?? 'irrelevant',
|
||||
onChange: (value: FilterItemParams) => {
|
||||
recordedChanges.push(value);
|
||||
},
|
||||
@ -168,7 +168,7 @@ describe('FilterDateItem date range constraints', () => {
|
||||
});
|
||||
|
||||
it('disables dates after today', async () => {
|
||||
setup(null);
|
||||
setup(null, undefined, 'Date To', 'Date To');
|
||||
|
||||
await userEvent.click(await screen.findByText('Date To'));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user