Files
gridpilot.gg/core/racing/application/use-cases/GetSponsorshipPricingUseCase.test.ts
2025-12-16 21:05:01 +01:00

23 lines
765 B
TypeScript

import { describe, it, expect, beforeEach } from 'vitest';
import { GetSponsorshipPricingUseCase } from './GetSponsorshipPricingUseCase';
describe('GetSponsorshipPricingUseCase', () => {
let useCase: GetSponsorshipPricingUseCase;
beforeEach(() => {
useCase = new GetSponsorshipPricingUseCase();
});
it('should return sponsorship pricing tiers', async () => {
const result = await useCase.execute();
expect(result.isOk()).toBe(true);
expect(result.unwrap()).toEqual({
pricing: [
{ id: 'tier-bronze', level: 'Bronze', price: 100, currency: 'USD' },
{ id: 'tier-silver', level: 'Silver', price: 250, currency: 'USD' },
{ id: 'tier-gold', level: 'Gold', price: 500, currency: 'USD' },
],
});
});
});