fixed tests failing caused by rewire
This commit is contained in:
parent
a57e43dd8c
commit
323e402e21
2 changed files with 4 additions and 0 deletions
|
@ -20,3 +20,5 @@ export const fetchMergeRequests = ({ dispatch, state }) => {
|
|||
})
|
||||
.catch(() => dispatch('receiveMergeRequestsError'));
|
||||
};
|
||||
|
||||
export default () => {};
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue