From 19f5181ecf259caf3bed7540b46d755c1d7f7a1c Mon Sep 17 00:00:00 2001 From: Ben Warzeski Date: Tue, 26 Oct 2021 12:17:41 -0400 Subject: [PATCH] fix: add onClose methods (dummies) to IconButton and AlertModal these 2 snapshots have anonymous functions... trying to decide if those should be made classes to notate the stub method... --- src/components/ConfirmModal.jsx | 1 + src/components/InfoPopover.jsx | 1 + src/components/__snapshots__/ConfirmModal.test.jsx.snap | 2 ++ src/components/__snapshots__/InfoPopover.test.jsx.snap | 1 + 4 files changed, 5 insertions(+) diff --git a/src/components/ConfirmModal.jsx b/src/components/ConfirmModal.jsx index b60b214..1fdbb77 100644 --- a/src/components/ConfirmModal.jsx +++ b/src/components/ConfirmModal.jsx @@ -15,6 +15,7 @@ export const ConfirmModal = ({ ({})} isOpen={isOpen} footerNode={( diff --git a/src/components/InfoPopover.jsx b/src/components/InfoPopover.jsx index 9200474..653b8d1 100644 --- a/src/components/InfoPopover.jsx +++ b/src/components/InfoPopover.jsx @@ -29,6 +29,7 @@ export const InfoPopover = ({ children }) => ( src={InfoOutline} alt="criterion info" iconAs={Icon} + onClick={() => {}} /> ); diff --git a/src/components/__snapshots__/ConfirmModal.test.jsx.snap b/src/components/__snapshots__/ConfirmModal.test.jsx.snap index dad16c1..5b278c2 100644 --- a/src/components/__snapshots__/ConfirmModal.test.jsx.snap +++ b/src/components/__snapshots__/ConfirmModal.test.jsx.snap @@ -20,6 +20,7 @@ exports[`ConfirmModal snapshot: closed 1`] = ` } isOpen={false} + onClose={[Function]} title="test-title" >

@@ -48,6 +49,7 @@ exports[`ConfirmModal snapshot: open 1`] = ` } isOpen={true} + onClose={[Function]} title="test-title" >

diff --git a/src/components/__snapshots__/InfoPopover.test.jsx.snap b/src/components/__snapshots__/InfoPopover.test.jsx.snap index d1ae88f..50e8a37 100644 --- a/src/components/__snapshots__/InfoPopover.test.jsx.snap +++ b/src/components/__snapshots__/InfoPopover.test.jsx.snap @@ -21,6 +21,7 @@ exports[`Info Popover Component snapshot 1`] = ` alt="criterion info" className="criteria-help-icon" iconAs={[MockFunction Icon]} + onClick={[Function]} src={[MockFunction icons.InfoOutline]} />