fixed tests failing caused by rewire

This commit is contained in:
Phil Hughes 2018-05-11 11:36:34 +01:00
parent a57e43dd8c
commit 323e402e21
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F
2 changed files with 4 additions and 0 deletions

View file

@ -20,3 +20,5 @@ export const fetchMergeRequests = ({ dispatch, state }) => {
})
.catch(() => dispatch('receiveMergeRequestsError'));
};
export default () => {};

View file

@ -1,11 +1,13 @@
import { decorateData } from '~/ide/stores/utils';
import state from '~/ide/stores/state';
import commitState from '~/ide/stores/modules/commit/state';
import mergeRequestsState from '~/ide/stores/modules/merge_requests/state';
export const resetStore = store => {
const newState = {
...state(),
commit: commitState(),
mergeRequests: mergeRequestsState(),
};
store.replaceState(newState);
};