Skip to content

Commit

Permalink
Fix Unit Test - Update Snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriSanchez1 committed Oct 19, 2023
1 parent 3b8e092 commit 0e7cd87
Show file tree
Hide file tree
Showing 20 changed files with 572 additions and 494 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

exports[`ClearButton tests default renderer 1`] = `
<Unknown>
<ForwardRef(WithStyles(ForwardRef(IconButton)))
<WithStyles(ForwardRef(IconButton))
aria-label="Clear"
className="Output__button__sm"
>
<UNDEFINED
<Memo
className="Output__icon__sm"
/>
</ForwardRef(WithStyles(ForwardRef(IconButton)))>
</WithStyles(ForwardRef(IconButton))>
</Unknown>
`;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`CommunicatorDialog tests default renderer 1`] = `
<ForwardRef(WithStyles(FullScreenDialog))
<WithStyles(FullScreenDialog)
buttons={
<CommunicatorDialogButtons
intl={
Expand All @@ -17,37 +17,37 @@ exports[`CommunicatorDialog tests default renderer 1`] = `
open={false}
title="cboard.components.CommunicatorDialog.title"
>
<ForwardRef(WithStyles(ForwardRef(Paper)))
<WithStyles(ForwardRef(Paper))
className=""
>
<FullScreenDialogContent
className="CommunicatorDialog__container"
>
<ForwardRef(WithStyles(ForwardRef(Tabs)))
<WithStyles(ForwardRef(Tabs))
className="CommunicatorDialog__tabs"
fixed="top"
onChange={[Function]}
scrollButtons="off"
value={0}
variant="scrollable"
>
<ForwardRef(WithStyles(ForwardRef(Tab)))
<WithStyles(ForwardRef(Tab))
className="active"
id="CommunicatorDialog__BoardBtn"
label="cboard.components.CommunicatorDialog.communicatorBoards"
/>
<ForwardRef(WithStyles(ForwardRef(Tab)))
<WithStyles(ForwardRef(Tab))
className=""
id="CommunicatorDialog__PublicBoardsBtn"
label="cboard.components.CommunicatorDialog.allBoards"
/>
<ForwardRef(WithStyles(ForwardRef(Tab)))
<WithStyles(ForwardRef(Tab))
className=""
disabled={false}
id="CommunicatorDialog__AllMyBoardsBtn"
label="cboard.components.CommunicatorDialog.myBoards"
/>
</ForwardRef(WithStyles(ForwardRef(Tabs)))>
</WithStyles(ForwardRef(Tabs))>
<div
className="CommunicatorDialog__content"
>
Expand Down Expand Up @@ -92,8 +92,8 @@ exports[`CommunicatorDialog tests default renderer 1`] = `
</React.Fragment>
</div>
</FullScreenDialogContent>
</ForwardRef(WithStyles(ForwardRef(Paper)))>
</ForwardRef(WithStyles(FullScreenDialog))>
</WithStyles(ForwardRef(Paper))>
</WithStyles(FullScreenDialog)>
`;

exports[`CommunicatorDialog tests loading behavior 1`] = `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports[`CommunicatorDialogButtons tests default renderer 1`] = `
id="communicator-dialog-buttons-search-button"
label="cboard.components.CommunicatorDialog.search"
>
<UNDEFINED />
<Memo />
</IconButton>
</div>
<div
Expand All @@ -22,24 +22,24 @@ exports[`CommunicatorDialogButtons tests default renderer 1`] = `
label="cboard.components.CommunicatorDialog.menu"
onClick={[Function]}
>
<UNDEFINED />
<Memo />
</IconButton>
<ForwardRef(WithStyles(ForwardRef(Menu)))
<WithStyles(ForwardRef(Menu))
anchorEl={null}
id="communicator-dialog-buttons-menu"
onClose={[Function]}
open={false}
>
<ForwardRef(WithStyles(ForwardRef(MenuItem)))>
<ForwardRef(Link)
<WithStyles(ForwardRef(MenuItem))>
<Link
to="/settings/help"
>
<FormattedMessage
values={Object {}}
/>
</ForwardRef(Link)>
</ForwardRef(WithStyles(ForwardRef(MenuItem)))>
<ForwardRef(WithStyles(ForwardRef(MenuItem)))>
</Link>
</WithStyles(ForwardRef(MenuItem))>
<WithStyles(ForwardRef(MenuItem))>
<a
href="https://www.cboard.io/terms-of-use/"
rel="noopener noreferrer"
Expand All @@ -49,8 +49,8 @@ exports[`CommunicatorDialogButtons tests default renderer 1`] = `
values={Object {}}
/>
</a>
</ForwardRef(WithStyles(ForwardRef(MenuItem)))>
</ForwardRef(WithStyles(ForwardRef(Menu)))>
</WithStyles(ForwardRef(MenuItem))>
</WithStyles(ForwardRef(Menu))>
</div>
</div>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,57 @@ exports[`Communicator tests default renderer 1`] = `
<div
className="CommunicatorToolbar"
>
<ForwardRef(WithStyles(ForwardRef(Button)))
<WithStyles(ForwardRef(Button))
className="Communicator__title"
disabled={false}
id="boards-button"
onClick={[Function]}
>
<UNDEFINED />
<Memo />
<FormattedMessage
defaultMessage="Boards"
id="cboard.components.CommunicatorToolbar.boards"
values={Object {}}
/>
</ForwardRef(WithStyles(ForwardRef(Button)))>
<ForwardRef(WithStyles(ForwardRef(Menu)))
</WithStyles(ForwardRef(Button))>
<WithStyles(ForwardRef(Menu))
anchorEl={null}
className="CommunicatorToolbar__menu"
id="boards-menu"
onClose={[Function]}
open={false}
>
<ForwardRef(WithStyles(ForwardRef(ListItem)))
<WithStyles(ForwardRef(ListItem))
className="CommunicatorToolbar__menuitem"
onClick={[Function]}
>
<ForwardRef(WithStyles(ForwardRef(ListItemAvatar)))>
<ForwardRef(WithStyles(ForwardRef(Avatar)))>
<UNDEFINED />
</ForwardRef(WithStyles(ForwardRef(Avatar)))>
</ForwardRef(WithStyles(ForwardRef(ListItemAvatar)))>
<ForwardRef(WithStyles(ForwardRef(ListItemText)))
<WithStyles(ForwardRef(ListItemAvatar))>
<WithStyles(ForwardRef(Avatar))>
<Memo />
</WithStyles(ForwardRef(Avatar))>
</WithStyles(ForwardRef(ListItemAvatar))>
<WithStyles(ForwardRef(ListItemText))
inset={true}
primary="board-1-name-key"
secondary="cboard.components.CommunicatorToolbar.tiles"
/>
</ForwardRef(WithStyles(ForwardRef(ListItem)))>
<ForwardRef(WithStyles(ForwardRef(ListItem)))
</WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(ListItem))
className="CommunicatorToolbar__menuitem"
onClick={[Function]}
>
<ForwardRef(WithStyles(ForwardRef(ListItemAvatar)))>
<ForwardRef(WithStyles(ForwardRef(Avatar)))>
<UNDEFINED />
</ForwardRef(WithStyles(ForwardRef(Avatar)))>
</ForwardRef(WithStyles(ForwardRef(ListItemAvatar)))>
<ForwardRef(WithStyles(ForwardRef(ListItemText)))
<WithStyles(ForwardRef(ListItemAvatar))>
<WithStyles(ForwardRef(Avatar))>
<Memo />
</WithStyles(ForwardRef(Avatar))>
</WithStyles(ForwardRef(ListItemAvatar))>
<WithStyles(ForwardRef(ListItemText))
inset={true}
primary="board-2-name"
secondary="cboard.components.CommunicatorToolbar.tiles"
/>
</ForwardRef(WithStyles(ForwardRef(ListItem)))>
</ForwardRef(WithStyles(ForwardRef(Menu)))>
</WithStyles(ForwardRef(ListItem))>
</WithStyles(ForwardRef(Menu))>
<WithWidth(WithMobileDialog)
onClose={[Function]}
onSubmit={[Function]}
Expand All @@ -67,7 +67,7 @@ exports[`Communicator tests default renderer 1`] = `
/>
}
>
<ForwardRef(WithStyles(ForwardRef(TextField)))
<WithStyles(ForwardRef(TextField))
autoFocus={true}
fullWidth={true}
label={
Expand All @@ -87,16 +87,16 @@ exports[`Communicator tests default renderer 1`] = `
<div
className="CommunicatorToolbar__group CommunicatorToolbar__group--start"
>
<ForwardRef(WithStyles(ForwardRef(Button)))
<WithStyles(ForwardRef(Button))
className="edit__communicator"
disabled={false}
onClick={[Function]}
>
<UNDEFINED
<Memo
className="CommunicatorToolbar__group CommunicatorToolbar__group--start--button"
/>
cboard.components.CommunicatorToolbar.editCommunicator
</ForwardRef(WithStyles(ForwardRef(Button)))>
</WithStyles(ForwardRef(Button))>
</div>
<div
className="CommunicatorToolbar__group CommunicatorToolbar__group--end"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Notifications tests default renderer 1`] = `
<ForwardRef(WithStyles(ForwardRef(Snackbar)))
<WithStyles(ForwardRef(Snackbar))
ContentProps={
Object {
"aria-describedby": "message-id",
Expand Down
Loading

0 comments on commit 0e7cd87

Please sign in to comment.