From 7524267c0f4cfdca42a926681691e01b4d06679c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 21 Feb 2025 12:42:49 +0000 Subject: [PATCH] Linting auto fix commit --- .../src/panels/info-center/InfoMessageItem.tsx | 9 +-------- .../unit/panels/info-center/InfoCenter.test.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/packages/control-property-editor/src/panels/info-center/InfoMessageItem.tsx b/packages/control-property-editor/src/panels/info-center/InfoMessageItem.tsx index 603a9182b2..4ba916be9f 100644 --- a/packages/control-property-editor/src/panels/info-center/InfoMessageItem.tsx +++ b/packages/control-property-editor/src/panels/info-center/InfoMessageItem.tsx @@ -34,14 +34,7 @@ const getMessageType = (type: MessageBarType) => { export function InfoMessageItem(item: Readonly): ReactElement { const { t } = useTranslation(); const dispatch = useDispatch(); - const { - expandable: isExpandable, - expanded: isExpanded, - read: isRead, - modal: isOpenedModal, - message, - id - } = item; + const { expandable: isExpandable, expanded: isExpanded, read: isRead, modal: isOpenedModal, message, id } = item; return ( { fireEvent.mouseOver(message); await waitFor(() => { - expect(dispatch).toHaveBeenCalledWith(expandableMessage('testid')); + expect(dispatch).toHaveBeenCalledWith(expandableMessage('testid')); }); - }); - - test('does not dispatch expandableMessage when element is already marked as expandable', async () => { + }); + + test('does not dispatch expandableMessage when element is already marked as expandable', async () => { const { dispatch } = render(, { initialState: { infoCenterMessages: [ @@ -213,9 +213,9 @@ describe('InfoCenter Component', () => { Object.defineProperty(message, 'clientHeight', { value: 100, configurable: true }); fireEvent.mouseOver(message); - + await waitFor(() => { - expect(dispatch).not.toHaveBeenCalledWith(expandableMessage('testid')); + expect(dispatch).not.toHaveBeenCalledWith(expandableMessage('testid')); }); - }); + }); });