From a010c743d5e997f4a67e1311af130cafd5a088aa Mon Sep 17 00:00:00 2001 From: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com> Date: Mon, 12 Aug 2024 09:17:09 -0400 Subject: [PATCH] chore(TimePicker): re-enabled unit test (#10810) --- .../src/components/TimePicker/__tests__/TimePicker.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-core/src/components/TimePicker/__tests__/TimePicker.test.tsx b/packages/react-core/src/components/TimePicker/__tests__/TimePicker.test.tsx index 12fd18a9c1c..014df1a8f06 100644 --- a/packages/react-core/src/components/TimePicker/__tests__/TimePicker.test.tsx +++ b/packages/react-core/src/components/TimePicker/__tests__/TimePicker.test.tsx @@ -9,14 +9,14 @@ describe('TimePicker', () => { test('Renders in strict mode', () => { const validateTime = (_time: string) => true; - // const consoleError = jest.spyOn(console, 'error'); + const consoleError = jest.spyOn(console, 'error'); render( ); - // TODO: investigate why this assertion is failing with issue #10482 - // expect(consoleError).not.toHaveBeenCalled(); + + expect(consoleError).not.toHaveBeenCalled(); expect(screen.getByLabelText('time picker')).not.toHaveClass('pf-m-error'); });