const actions = {
  setAcceptAlert: jest.fn(),
  loadData: jest.fn(),
  setMenu: jest.fn()
}

const mutations = {
  SET_MODAL_VISIBLE: jest.fn(),
  SET_MENU: jest.fn()
}

const state = {
  alertMessage: {},
  acceptAlert: {}
}

const getters = {
  notifications: state => state.notifications,
  isNotificationsVisible: state => state.isNotificationsVisible,
  csrfToken: state => state.csrfToken,
  menu: state => state.menu,
  menuItems: state => state.menuItems,
  backUrl: state => state.backUrl,
  alertMessage: state => state.alertMessage,
  acceptAlert: state => state.acceptAlert,
  isModalImportVisible: state => state.isModalImportVisible
}

export default {
  actions,
  mutations,
  state,
  getters,
  modules: {
    Users: {
      namespaced: true,
      state: {
        users: {},
        pagination: {
          currentPage: 1,
          perPage: 5,
          totalCustomers: 10,
          totalPages: 1
        },
        catalog: {},
        filterParams: '',
        isModalVisible: false
      },
      getters: {
        users: state => state.users,
        catalog: state => state.catalog,
        pagination: state => state.pagination,
        isModalVisible: state => state.isModalVisible,
        filterParams: state => state.filterParams
      }
    }
    // New Module
  }
}
