Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbedouret committed Oct 12, 2021
1 parent c9f595c commit 696c673
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/components/App/__tests__/App.reducer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('reducer', () => {
navigationSettings: {
active: false,
caBackButtonActive: false,
liveMode: false,
shareShowActive: false,
quickUnlockActive: false,
removeOutputActive: false,
Expand All @@ -58,6 +59,7 @@ describe('reducer', () => {
navigationSettings: {
active: false,
caBackButtonActive: false,
liveMode: false,
shareShowActive: false,
quickUnlockActive: false,
removeOutputActive: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const props = {
quickUnlockActive: false,
removeOutputActive: false
},
onRemoveClick: jest.fn()
onRemoveClick: jest.fn(),
onWriteSymbol: jest.fn()
};

describe('SymbolOutput tests', () => {
Expand Down
5 changes: 3 additions & 2 deletions src/components/Board/__tests__/Board.reducer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const initialState = {
navHistory: [],
isFetching: false,
isFixed: false,
images: []
images: [],
isLiveMode: false
};

describe('reducer', () => {
Expand Down Expand Up @@ -523,7 +524,7 @@ describe('reducer', () => {
boardReducer(
{
...initialState,
navHistory: ['123', '456','789'],
navHistory: ['123', '456', '789'],
activeBoardId: '789'
},
toRootBoard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ exports[`Notifications tests default renderer 1`] = `
"variant": "elevation",
}
}
TransitionProps={
Object {
"onExited": [Function],
}
}
autoHideDuration={5000}
message={
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ exports[`Export tests default renderer 1`] = `
Object {
"cboardLink": <ForwardRef(WithStyles(ForwardRef(Link)))
href="https://www.cboard.io/help/#HowdoIimportaboardintoCboard"
rel="noopener noreferrer"
target="_blank"
>
Cboard
</ForwardRef(WithStyles(ForwardRef(Link)))>,
"link": <ForwardRef(WithStyles(ForwardRef(Link)))
href="https://www.openboardformat.org/"
rel="noopener noreferrer"
target="_blank"
>
OpenBoard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ exports[`Import tests default renderer 1`] = `
Object {
"cboardLink": <ForwardRef(WithStyles(ForwardRef(Link)))
href="https://www.cboard.io/help/#HowdoIimportaboardintoCboard"
rel="noopener noreferrer"
target="_blank"
>
Cboard
</ForwardRef(WithStyles(ForwardRef(Link)))>,
"link": <ForwardRef(WithStyles(ForwardRef(Link)))
href="https://www.openboardformat.org/"
rel="noopener noreferrer"
target="_blank"
>
OpenBoard
Expand Down Expand Up @@ -125,12 +127,14 @@ exports[`Import tests loading behavior 1`] = `
Object {
"cboardLink": <ForwardRef(WithStyles(ForwardRef(Link)))
href="https://www.cboard.io/help/#HowdoIimportaboardintoCboard"
rel="noopener noreferrer"
target="_blank"
>
Cboard
</ForwardRef(WithStyles(ForwardRef(Link)))>,
"link": <ForwardRef(WithStyles(ForwardRef(Link)))
href="https://www.openboardformat.org/"
rel="noopener noreferrer"
target="_blank"
>
OpenBoard
Expand Down Expand Up @@ -215,12 +219,14 @@ exports[`Import tests loading behavior 2`] = `
Object {
"cboardLink": <ForwardRef(WithStyles(ForwardRef(Link)))
href="https://www.cboard.io/help/#HowdoIimportaboardintoCboard"
rel="noopener noreferrer"
target="_blank"
>
Cboard
</ForwardRef(WithStyles(ForwardRef(Link)))>,
"link": <ForwardRef(WithStyles(ForwardRef(Link)))
href="https://www.openboardformat.org/"
rel="noopener noreferrer"
target="_blank"
>
OpenBoard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ exports[`Navigation tests default renderer 1`] = `
/>
</ForwardRef(WithStyles(ForwardRef(ListItemSecondaryAction)))>
</ForwardRef(WithStyles(ForwardRef(ListItem)))>
<ForwardRef(WithStyles(ForwardRef(Divider))) />
<Connect(ResetToursItemContainer) />
<ForwardRef(WithStyles(ForwardRef(Divider))) />
<ForwardRef(WithStyles(ForwardRef(ListItem)))>
<ForwardRef(WithStyles(ForwardRef(ListItemText)))
className="Display__ListItemText"
primary={
<FormattedMessage
values={Object {}}
/>
}
secondary={
<FormattedMessage
values={Object {}}
/>
}
/>
<ForwardRef(WithStyles(ForwardRef(ListItemSecondaryAction)))>
<ForwardRef(WithStyles(ForwardRef(Switch)))
checked={false}
color="secondary"
onChange={[Function]}
value="active"
/>
</ForwardRef(WithStyles(ForwardRef(ListItemSecondaryAction)))>
</ForwardRef(WithStyles(ForwardRef(ListItem)))>
</ForwardRef(WithStyles(ForwardRef(List)))>
</ForwardRef(WithStyles(ForwardRef(Paper)))>
</ForwardRef(WithStyles(FullScreenDialog))>
Expand Down Expand Up @@ -294,6 +320,32 @@ exports[`Navigation tests switchs behavior 1`] = `
/>
</WithStyles(ForwardRef(ListItemSecondaryAction))>
</WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(Divider)) />
<Connect(ResetToursItemContainer) />
<WithStyles(ForwardRef(Divider)) />
<WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(ListItemText))
className="Display__ListItemText"
primary={
<FormattedMessage
values={Object {}}
/>
}
secondary={
<FormattedMessage
values={Object {}}
/>
}
/>
<WithStyles(ForwardRef(ListItemSecondaryAction))>
<WithStyles(ForwardRef(Switch))
checked={false}
color="secondary"
onChange={[Function]}
value="active"
/>
</WithStyles(ForwardRef(ListItemSecondaryAction))>
</WithStyles(ForwardRef(ListItem))>
</WithStyles(ForwardRef(List))>
</WithStyles(ForwardRef(Paper))>
</WithStyles(FullScreenDialog)>
Expand Down Expand Up @@ -444,6 +496,32 @@ exports[`Navigation tests switchs behavior 2`] = `
/>
</WithStyles(ForwardRef(ListItemSecondaryAction))>
</WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(Divider)) />
<Connect(ResetToursItemContainer) />
<WithStyles(ForwardRef(Divider)) />
<WithStyles(ForwardRef(ListItem))>
<WithStyles(ForwardRef(ListItemText))
className="Display__ListItemText"
primary={
<FormattedMessage
values={Object {}}
/>
}
secondary={
<FormattedMessage
values={Object {}}
/>
}
/>
<WithStyles(ForwardRef(ListItemSecondaryAction))>
<WithStyles(ForwardRef(Switch))
checked={false}
color="secondary"
onChange={[Function]}
value="active"
/>
</WithStyles(ForwardRef(ListItemSecondaryAction))>
</WithStyles(ForwardRef(ListItem))>
</WithStyles(ForwardRef(List))>
</WithStyles(ForwardRef(Paper))>
</WithStyles(FullScreenDialog)>
Expand Down

0 comments on commit 696c673

Please sign in to comment.