Skip to content

Commit 3532e49

Browse files
committed
Update unit test on the assumption that 12am should be intended as midnight
1 parent 66c847e commit 3532e49

File tree

1 file changed

+2
-2
lines changed
  • packages/components/src/date-time/test

1 file changed

+2
-2
lines changed

packages/components/src/date-time/test/time.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ describe( 'TimePicker', () => {
4747
fireEvent.change( hoursInput, { target: { value: '12' } } );
4848
fireEvent.blur( hoursInput );
4949

50-
expect( onChangeSpy ).toHaveBeenCalledWith( '2018-12-22T12:00:00' );
50+
expect( onChangeSpy ).toHaveBeenCalledWith( '2018-12-22T00:00:00' );
5151
onChangeSpy.mockClear();
5252

5353
fireEvent.change( minutesInput, { target: { value: '35' } } );
5454
fireEvent.blur( minutesInput );
5555

56-
expect( onChangeSpy ).toHaveBeenCalledWith( '2018-12-22T12:35:00' );
56+
expect( onChangeSpy ).toHaveBeenCalledWith( '2018-12-22T00:35:00' );
5757
onChangeSpy.mockClear();
5858
} );
5959

0 commit comments

Comments
 (0)