add default exports to prevent rewire plugin from breaking vuex
This commit is contained in:
parent
4d828eae20
commit
0b932a7fcb
8 changed files with 24 additions and 0 deletions
|
@ -141,3 +141,6 @@ export * from './actions/tree';
|
|||
export * from './actions/file';
|
||||
export * from './actions/project';
|
||||
export * from './actions/merge_request';
|
||||
|
||||
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
||||
export default () => {};
|
||||
|
|
|
@ -43,3 +43,6 @@ export const collapseButtonTooltip = state =>
|
|||
export const hasMergeRequest = state => !!state.currentMergeRequestId;
|
||||
|
||||
export const getStagedFile = state => path => state.stagedFiles.find(f => f.path === path);
|
||||
|
||||
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
||||
export default () => {};
|
||||
|
|
|
@ -185,3 +185,6 @@ export const commitChanges = ({ commit, state, getters, dispatch, rootState }) =
|
|||
commit(types.UPDATE_LOADING, false);
|
||||
});
|
||||
};
|
||||
|
||||
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
||||
export default () => {};
|
||||
|
|
|
@ -27,3 +27,6 @@ export const branchName = (state, getters, rootState) => {
|
|||
|
||||
return rootState.currentBranchId;
|
||||
};
|
||||
|
||||
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
||||
export default () => {};
|
||||
|
|
|
@ -315,3 +315,6 @@ export const scrollToNoteIfNeeded = (context, el) => {
|
|||
scrollToElement(el);
|
||||
}
|
||||
};
|
||||
|
||||
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
||||
export default () => {};
|
||||
|
|
|
@ -68,3 +68,6 @@ export const resolvedDiscussionCount = (state, getters) => {
|
|||
|
||||
return Object.keys(resolvedMap).length;
|
||||
};
|
||||
|
||||
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
||||
export default () => {};
|
||||
|
|
|
@ -35,3 +35,6 @@ export const deleteRegistry = ({ commit }, image) => Vue.http.delete(image.destr
|
|||
|
||||
export const setMainEndpoint = ({ commit }, data) => commit(types.SET_MAIN_ENDPOINT, data);
|
||||
export const toggleLoading = ({ commit }) => commit(types.TOGGLE_MAIN_LOADING);
|
||||
|
||||
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
||||
export default () => {};
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
export const isLoading = state => state.isLoading;
|
||||
export const repos = state => state.repos;
|
||||
|
||||
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
||||
export default () => {};
|
||||
|
|
Loading…
Reference in a new issue