mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-30 18:36:24 +00:00
Do not inject settings state or actions
This commit is contained in:
@@ -19,7 +19,7 @@ describe('<App />', () => {
|
||||
);
|
||||
const setUp = async (activeRoute = '/') => act(() => renderWithStore(
|
||||
<MemoryRouter initialEntries={[{ pathname: activeRoute }]}>
|
||||
<App settings={fromPartial({})} appUpdated={false} resetAppUpdate={() => {}} />
|
||||
<App appUpdated={false} resetAppUpdate={() => {}} />
|
||||
</MemoryRouter>,
|
||||
{
|
||||
initialState: {
|
||||
@@ -27,6 +27,7 @@ describe('<App />', () => {
|
||||
abc123: fromPartial<ServerWithId>({ id: 'abc123', name: 'abc123 server' }),
|
||||
def456: fromPartial<ServerWithId>({ id: 'def456', name: 'def456 server' }),
|
||||
},
|
||||
settings: fromPartial({}),
|
||||
},
|
||||
},
|
||||
));
|
||||
|
||||
@@ -19,10 +19,10 @@ describe('<ShlinkWebComponentContainer />', () => {
|
||||
}));
|
||||
const setUp = (selectedServer: SelectedServer) => renderWithStore(
|
||||
<MemoryRouter>
|
||||
<ShlinkWebComponentContainer settings={{}} />
|
||||
<ShlinkWebComponentContainer />
|
||||
</MemoryRouter>,
|
||||
{
|
||||
initialState: { selectedServer, servers: {} },
|
||||
initialState: { selectedServer, servers: {}, settings: {} },
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user