insomnia/packages/insomnia-app/app/__jest__/redux-state-for-test.js

11 lines
309 B
JavaScript
Raw Normal View History

2021-01-25 02:50:53 +00:00
// @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;