insomnia/packages/insomnia-app/app/__jest__/redux-state-for-test.js
2021-01-25 15:50:53 +13:00

11 lines
309 B
JavaScript

// @flow
import * as entities from '../ui/redux/modules/entities';
const reduxStateForTest = async (activeWorkspaceId: string): Promise<Object> => ({
entities: entities.reducer({}, entities.initializeWith(await entities.allDocs())),
global: { activeWorkspaceId },
});
export default reduxStateForTest;