Skip to content

Commit

Permalink
tests: update mock data with serverOnline, currentPage and customPages
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Oct 10, 2020
1 parent dc077be commit 692cb4b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion server/__tests__/__mocks__/parsedEmptyStore.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@
"offtubeMode": false,
"fadeTime": 120,
"voFadeTime": 280,
"showPfl": false
"showPfl": false,
"serverOnline": true,
"currentPage": "undefined",
"customPages": "undefined"
}
]
}
5 changes: 4 additions & 1 deletion server/__tests__/__mocks__/parsedFullStore.json
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,10 @@
"offtubeMode": false,
"fadeTime": 60,
"voFadeTime": 200,
"showPfl": false
"showPfl": false,
"serverOnline": true,
"currentPage": "undefined",
"customPages": "undefined"
}
]
}
5 changes: 4 additions & 1 deletion server/__tests__/__mocks__/parsedSimpleStore.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
"offtubeMode": false,
"fadeTime": 60,
"voFadeTime": 200,
"showPfl": false
"showPfl": false,
"serverOnline": true,
"currentPage": "undefined",
"customPages": "undefined"
}
]
}
2 changes: 1 addition & 1 deletion server/reducers/settingsReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const settings = (
nextState[0].showMonitorOptions = state[0].showMonitorOptions || -1
nextState[0].showStorage = state[0].showStorage || false
nextState[0].showChanStrip = state[0].showChanStrip || -1
nextState[0].serverOnline = state[0].serverOnline || false
nextState[0].serverOnline = state[0].serverOnline || true
nextState[0].currentPage = state[0].currentPage
nextState[0].customPages = state[0].customPages

Expand Down

0 comments on commit 692cb4b

Please sign in to comment.