Skip to content

Commit e0f0b56

Browse files
committed
fix: fixing time-picker test
1 parent 2e3244c commit e0f0b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/carbon-component-mapper/src/tests/time-picker.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('TimePicker', () => {
7171
fireEvent.focusOut(screen.getByPlaceholderText('hh:mm'));
7272
await userEvent.click(screen.getByText('Submit'));
7373

74-
expect(screen.getByPlaceholderText('hh:mm')).toHaveValue('24:00');
74+
expect(screen.getByPlaceholderText('hh:mm').value).toMatch(/^(00:00|24:00)$/);
7575
expect(onSubmit.mock.calls[0][0]['time-picker'].getHours()).toEqual(0);
7676
expect(onSubmit.mock.calls[0][0]['time-picker'].getMinutes()).toEqual(0);
7777
});

0 commit comments

Comments
 (0)