refactor
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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' },
|
||||
],
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user