Skip to content

Commit

Permalink
fix for unitest
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbedouret committed Feb 20, 2020
1 parent d655945 commit 1cf6158
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/App/__tests__/App.reducer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ describe('reducer', () => {
isFirstVisit: true,
displaySettings: {
uiSize: DISPLAY_SIZE_STANDARD,
fontSize: DISPLAY_SIZE_STANDARD
fontSize: DISPLAY_SIZE_STANDARD,
hideOutputActive: false
},
navigationSettings: {
active: false,
Expand Down
63 changes: 63 additions & 0 deletions src/components/Settings/Display/__snapshots__/Display.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,27 @@ exports[`Display tests default renderer 1`] = `
</ForwardRef(RadioGroup)>
</ForwardRef(WithStyles)>
</ForwardRef(WithStyles)>
<ForwardRef(WithStyles)>
<ForwardRef(WithStyles)
primary={
<FormattedMessage
values={Object {}}
/>
}
secondary={
<FormattedMessage
values={Object {}}
/>
}
/>
<ForwardRef(WithStyles)>
<ForwardRef(WithStyles)
color="primary"
onChange={[Function]}
value="active"
/>
</ForwardRef(WithStyles)>
</ForwardRef(WithStyles)>
</ForwardRef(WithStyles)>
</ForwardRef(WithStyles)>
</ForwardRef(WithStyles)>
Expand Down Expand Up @@ -287,6 +308,27 @@ exports[`Display tests options behavior 1`] = `
</ForwardRef(RadioGroup)>
</WithStyles(ForwardRef(ListItemSecondaryAction))>
</WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(ListItemText))
primary={
<FormattedMessage
values={Object {}}
/>
}
secondary={
<FormattedMessage
values={Object {}}
/>
}
/>
<WithStyles(ForwardRef(ListItemSecondaryAction))>
<WithStyles(ForwardRef(Switch))
color="primary"
onChange={[Function]}
value="active"
/>
</WithStyles(ForwardRef(ListItemSecondaryAction))>
</WithStyles(ForwardRef(ListItem))>
</WithStyles(ForwardRef(List))>
</WithStyles(ForwardRef(Paper))>
</WithStyles(FullScreenDialog)>
Expand Down Expand Up @@ -433,6 +475,27 @@ exports[`Display tests options behavior 2`] = `
</ForwardRef(RadioGroup)>
</WithStyles(ForwardRef(ListItemSecondaryAction))>
</WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(ListItemText))
primary={
<FormattedMessage
values={Object {}}
/>
}
secondary={
<FormattedMessage
values={Object {}}
/>
}
/>
<WithStyles(ForwardRef(ListItemSecondaryAction))>
<WithStyles(ForwardRef(Switch))
color="primary"
onChange={[Function]}
value="active"
/>
</WithStyles(ForwardRef(ListItemSecondaryAction))>
</WithStyles(ForwardRef(ListItem))>
</WithStyles(ForwardRef(List))>
</WithStyles(ForwardRef(Paper))>
</WithStyles(FullScreenDialog)>
Expand Down
12 changes: 12 additions & 0 deletions src/components/UI/FilterBar/__snapshots__/FilterBar.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`FilterBar tests default renderer 1`] = `
<div
className="FilterBar"
>
<ForwardRef(WithStyles)
className="FilterBar__FormGroup"
row={true}
/>
</div>
`;

0 comments on commit 1cf6158

Please sign in to comment.