Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
chore(test): update snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: irmerk <[email protected]>
  • Loading branch information
jolanglinais committed Mar 6, 2020
1 parent 7f943b9 commit 26eecd0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
14 changes: 7 additions & 7 deletions src/components/ClauseComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ function ClauseComponent(props) {
</S.ClauseHeader>
{ !props.readOnly
&& <>
<S.TestWrapper
<S.TestWrapper
{...iconWrapperProps}
onMouseEnter={() => setHoveringTestIcon(true)}
onMouseLeave={() => setHoveringTestIcon(false)}
onClick={() => clauseProps.CLAUSE_TEST_FUNCTION(props)}
>
<S.ClauseIcon
{...testIconProps}
<S.ClauseIcon
{...testIconProps}
hovering={hoveringTestIcon}
>
{testIcon.icon()}
Expand All @@ -213,13 +213,13 @@ function ClauseComponent(props) {
</S.HeaderToolTipWrapper>
}
</S.TestWrapper>
<S.EditWrapper
<S.EditWrapper
{...iconWrapperProps}
onMouseEnter={() => setHoveringEditIcon(true)}
onMouseLeave={() => setHoveringEditIcon(false)}
onClick={() => clauseProps.CLAUSE_EDIT_FUNCTION(props)}
>
<S.ClauseIcon
<S.ClauseIcon
{...editIconProps}
hovering={hoveringEditIcon}
>
Expand All @@ -233,13 +233,13 @@ function ClauseComponent(props) {
</S.HeaderToolTipWrapper>
}
</S.EditWrapper>
<S.DeleteWrapper
<S.DeleteWrapper
{...iconWrapperProps}
onMouseEnter={() => setHoveringDeleteIcon(true)}
onMouseLeave={() => setHoveringDeleteIcon(false)}
onClick={() => clauseProps.CLAUSE_DELETE_FUNCTION(props)}
>
<S.ClauseIcon
<S.ClauseIcon
{...deleteIconProps}
hovering={hoveringDeleteIcon}
>
Expand Down
21 changes: 15 additions & 6 deletions src/components/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ exports[`<ClauseComponent /> on initialization renders component correctly 1`] =
</styled.div>
<Styled(styled.div)
currentHover={false}
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
<styled.svg
aria-label={[Function]}
height="20px"
onClick={[Function]}
height="19px"
hovering={false}
viewBox="0 0 16 20"
width="16px"
width="19px"
>
<g
fillRule="evenodd"
Expand All @@ -50,11 +53,14 @@ exports[`<ClauseComponent /> on initialization renders component correctly 1`] =
</Styled(styled.div)>
<Styled(styled.div)
currentHover={false}
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
<styled.svg
aria-label={[Function]}
height="19px"
onClick={[Function]}
hovering={false}
viewBox="0 0 19 19"
width="19px"
>
Expand All @@ -74,13 +80,16 @@ exports[`<ClauseComponent /> on initialization renders component correctly 1`] =
</Styled(styled.div)>
<Styled(styled.div)
currentHover={false}
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
<styled.svg
aria-label={[Function]}
height="19px"
onClick={[Function]}
hovering={false}
viewBox="0 0 12 15"
width="15px"
width="19px"
>
<g
fillRule="evenodd"
Expand Down

0 comments on commit 26eecd0

Please sign in to comment.