organizations.tsx 631 B

123456789101112131415161718192021222324252627282930
  1. import {OrganizationFixture} from 'sentry-fixture/organization';
  2. import {Organization} from 'sentry/types';
  3. export function OrganizationsFixture(params: Partial<Organization> = {}): Organization[] {
  4. return [
  5. OrganizationFixture({
  6. id: '1',
  7. name: 'test 1',
  8. slug: 'test 1',
  9. require2FA: false,
  10. status: {
  11. id: 'active',
  12. name: 'active',
  13. },
  14. ...params,
  15. }),
  16. OrganizationFixture({
  17. id: '2',
  18. name: 'test 2',
  19. slug: 'test 2',
  20. require2FA: false,
  21. status: {
  22. id: 'active',
  23. name: 'active',
  24. },
  25. ...params,
  26. }),
  27. ];
  28. }