23 lines
765 B
TypeScript
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' },
|
|
],
|
|
});
|
|
});
|
|
}); |