Skip to content

Commit 81b32b6

Browse files
committed
fix: test
1 parent 669467f commit 81b32b6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/manual-clear.spec.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,12 @@ describe('Picker.ManualClear', () => {
7575
format="YYYY-MM-DD"
7676
/>,
7777
);
78-
7978
const input = container.querySelector('input') as HTMLInputElement;
80-
8179
openPicker(container);
82-
80+
fireEvent.change(input, { target: { value: '2023-08' } });
8381
const initialOnChangeCallCount = onChange.mock.calls.length;
84-
8582
fireEvent.blur(input);
8683
await waitFakeTimer();
87-
8884
expect(onChange.mock.calls.length).toBe(initialOnChangeCallCount);
8985
expect(input.value).toBe('2023-08-01');
9086
});

0 commit comments

Comments
 (0)