AFFiNE/packages/backend/server/tests/payment/snapshots/service.spec.ts.md
2024-12-05 08:31:01 +00:00

2.0 KiB

Snapshot report for tests/payment/service.spec.ts

The actual snapshot is saved in service.spec.ts.snap.

Generated by AVA.

should list normal price for unauthenticated user

Snapshot 1

[
  'pro_monthly',
  'pro_yearly',
  'pro_lifetime',
  'ai_yearly',
  'team_monthly',
  'team_yearly',
]

should list normal prices for authenticated user

Snapshot 1

[
  'pro_monthly',
  'pro_yearly',
  'pro_lifetime',
  'ai_yearly',
  'team_monthly',
  'team_yearly',
]

should not show lifetime price if not enabled

Snapshot 1

[
  'pro_monthly',
  'pro_yearly',
  'ai_yearly',
  'team_monthly',
  'team_yearly',
]

should list early access prices for pro ea user

Snapshot 1

[
  'pro_monthly',
  'pro_lifetime',
  'pro_yearly_earlyaccess',
  'ai_yearly',
  'team_monthly',
  'team_yearly',
]

should list normal prices for pro ea user with old subscriptions

Snapshot 1

[
  'pro_monthly',
  'pro_yearly',
  'pro_lifetime',
  'ai_yearly',
  'team_monthly',
  'team_yearly',
]

should list early access prices for ai ea user

Snapshot 1

[
  'pro_monthly',
  'pro_yearly',
  'pro_lifetime',
  'ai_yearly_earlyaccess',
  'team_monthly',
  'team_yearly',
]

should list early access prices for pro and ai ea user

Snapshot 1

[
  'pro_monthly',
  'pro_lifetime',
  'pro_yearly_earlyaccess',
  'ai_yearly_earlyaccess',
  'team_monthly',
  'team_yearly',
]

should list normal prices for ai ea user with old subscriptions

Snapshot 1

[
  'pro_monthly',
  'pro_yearly',
  'pro_lifetime',
  'ai_yearly',
  'team_monthly',
  'team_yearly',
]

should be able to list prices for team

Snapshot 1

[
  'pro_monthly',
  'pro_yearly',
  'pro_lifetime',
  'ai_yearly',
  'team_monthly',
  'team_yearly',
]