gitlab-org--gitlab-foss/spec/javascripts/repo/helpers.js
2017-11-10 16:55:58 +00:00

15 lines
314 B
JavaScript

import { decorateData } from '~/repo/stores/utils';
import state from '~/repo/stores/state';
export const resetStore = (store) => {
store.replaceState(state());
};
export const file = (name = 'name', id = name, type = '') => decorateData({
id,
type,
icon: 'icon',
url: 'url',
name,
path: name,
});