Files
graylog2-server/graylog2-web-interface/test/defaultMockValues.ts
Linus Pahl 9392792c2c Replace usage of CurrentUserStore with useCurrentUser hook and remove no longer needed mocks. (#13285)
* Replace `CurrentUserStore` with `useCurrentUser` in `ConfigurationsPage`.

* Remove no longer needed mocks in tests.

* Removing not needed import.

* Remove usage of `CurrentUserContext` in `EditEventDefinitionPage` and `ViewEventDefinitionPage`.

* Replace usage of `CurrentUserStore` in `InputsPage`.

* Replace usage of `CurrentUserStore` in `StreamEditPage`.

* Replace usage of `CurrentUserStore` in `StreamsPage`.

* Migrating component to TS.

* Fixing linter hints.

* Improving test

* Fixing `StreamEditPage`.

* Using hooks for `StreamEditPage` where possible.

* Create const for default user in tests.
2022-09-01 16:51:46 +02:00

22 lines
777 B
TypeScript

/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
import { adminUser } from 'fixtures/users';
export const defaultTimezone = 'Europe/Berlin';
export const defaultUser = adminUser;