Skip to content

Commit

Permalink
Linting auto fix commit
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 21, 2025
1 parent c77f424 commit 7524267
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ const getMessageType = (type: MessageBarType) => {
export function InfoMessageItem(item: Readonly<InfoCenterItem>): 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 (
<Stack.Item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ describe('InfoCenter Component', () => {
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(<InfoCenter />, {
initialState: {
infoCenterMessages: [
Expand Down Expand Up @@ -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'));
});
});
});
});

0 comments on commit 7524267

Please sign in to comment.