mock-applicationConfig.ts 432 B

12345678910111213
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import { useApplicationStore } from '@shared/stores/application'
  3. import type { ConfigList } from '@shared/types/store'
  4. import { initializePiniaStore } from './components/renderComponent'
  5. export const mockApplicationConfig = (config: ConfigList) => {
  6. initializePiniaStore()
  7. const application = useApplicationStore()
  8. application.config = config
  9. }