Commit 200a72b9 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'mw-pa-remove-empty-default-export' into 'master'

Remove empty default export

See merge request gitlab-org/gitlab!21433
parents 43c10403 5cf98bcc
import SET_ENDPOINT from './mutation_types';
// eslint-disable-next-line import/prefer-default-export
export const setEndpoint = ({ commit }, endpoint) => commit(SET_ENDPOINT, endpoint);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
// eslint-disable-next-line import/prefer-default-export
export const getMetricTypes = state => chartKey =>
state.metricTypes.filter(m => m.charts.indexOf(chartKey) !== -1);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
......@@ -90,6 +90,3 @@ export const resetMainChartSelection = ({ commit, dispatch }, skipReload = false
export const setChartEnabled = ({ commit }, { chartKey, isEnabled }) =>
commit(types.SET_CHART_ENABLED, { chartKey, isEnabled });
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
......@@ -154,6 +154,3 @@ export const hasNoAccessError = state =>
export const isChartEnabled = state => chartKey => state.charts[chartKey].enabled;
export const isFilteringByDaysToMerge = state => state.charts[chartKeys.main].selected.length > 0;
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
......@@ -61,6 +61,3 @@ export const setDateRange = ({ commit, dispatch }, { skipFetch = false, startDat
dispatch('table/setPage', 0, { root: true });
});
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
......@@ -19,6 +19,7 @@ import { dateFormats } from '../../../../shared/constants';
* }
*
*/
// eslint-disable-next-line import/prefer-default-export
export const getCommonFilterParams = state => chartKey => {
const {
groupNamespace,
......@@ -46,6 +47,3 @@ export const getCommonFilterParams = state => chartKey => {
merged_at_before: `${dateFormat(endDate, dateFormats.isoDate)}${endOfDayTime}`,
};
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment