Refactor screenshot capturing
Summary: Adding a utility for capturing screenshots to the configured location without having to worry about where to store it or use buffers etc. Reviewed By: mweststrate Differential Revision: D19765926 fbshipit-source-id: d6b51c4ffafab7450e97a60468926d84a25a8c0f
This commit is contained in:
committed by
Facebook Github Bot
parent
f0a482af2f
commit
2acf81027e
@@ -21,10 +21,15 @@ import {init as initLogger} from '../../fb-stubs/Logger.tsx';
|
||||
import configureStore from 'redux-mock-store';
|
||||
import {TEST_PASSING_GK, TEST_FAILING_GK} from '../../fb-stubs/GK.tsx';
|
||||
import TestPlugin from './TestPlugin';
|
||||
import {resetConfigForTesting} from '../../utils/processConfig.tsx';
|
||||
|
||||
const mockStore = configureStore([])(reducers(undefined, {type: 'INIT'}));
|
||||
const logger = initLogger(mockStore);
|
||||
|
||||
beforeEach(() => {
|
||||
resetConfigForTesting();
|
||||
});
|
||||
|
||||
test('dispatcher dispatches REGISTER_PLUGINS', () => {
|
||||
dispatcher(mockStore, logger);
|
||||
const actions = mockStore.getActions();
|
||||
|
||||
Reference in New Issue
Block a user