Skip to content

Commit

Permalink
Update unit test on the assumption that 12am should be intended as mi…
Browse files Browse the repository at this point in the history
…dnight
  • Loading branch information
ciampo committed Nov 26, 2021
1 parent 66c847e commit 3532e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/date-time/test/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ describe( 'TimePicker', () => {
fireEvent.change( hoursInput, { target: { value: '12' } } );
fireEvent.blur( hoursInput );

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

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

expect( onChangeSpy ).toHaveBeenCalledWith( '2018-12-22T12:35:00' );
expect( onChangeSpy ).toHaveBeenCalledWith( '2018-12-22T00:35:00' );
onChangeSpy.mockClear();
} );

Expand Down

0 comments on commit 3532e49

Please sign in to comment.