promotion.ts 498 B

1234567891011121314151617181920
  1. import {DiscountInfoFixture} from 'getsentry-test/fixtures/discountInfo';
  2. import type {Promotion as TPromotion} from 'getsentry/types';
  3. type Props = Partial<TPromotion>;
  4. export function PromotionFixture(props: Props): TPromotion {
  5. return {
  6. autoOptIn: false,
  7. discountInfo: DiscountInfoFixture({}),
  8. endDate: '',
  9. name: 'Lorem Ipsum',
  10. promptActivityTrigger: null,
  11. showDiscountInfo: false,
  12. slug: 'lorem-ipsum',
  13. startDate: '',
  14. timeLimit: '',
  15. ...props,
  16. };
  17. }