mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
18 lines
572 B
TypeScript
18 lines
572 B
TypeScript
import { ACTIVITY_DEBUG } from '../common/constants';
|
|
import { RootState } from '../ui/redux/modules';
|
|
import * as entities from '../ui/redux/modules/entities';
|
|
|
|
const reduxStateForTest = async (activeWorkspaceId: string): Promise<RootState> => ({
|
|
entities: entities.reducer(entities.initialEntitiesState, entities.initializeWith(await entities.allDocs())),
|
|
global: {
|
|
activeWorkspaceId,
|
|
activeActivity: ACTIVITY_DEBUG,
|
|
activeSpaceId: null,
|
|
isLoading: false,
|
|
isLoggedIn: false,
|
|
loadingRequestIds: {},
|
|
},
|
|
});
|
|
|
|
export default reduxStateForTest;
|