28 lines
835 B
TypeScript
28 lines
835 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import * as useCases from './index';
|
|
|
|
describe('payments use-cases barrel exports', () => {
|
|
it('re-exports all expected use cases', () => {
|
|
const exported = useCases as unknown as Record<string, unknown>;
|
|
|
|
const expectedExports = [
|
|
'AwardPrizeUseCase',
|
|
'CreatePaymentUseCase',
|
|
'CreatePrizeUseCase',
|
|
'DeletePrizeUseCase',
|
|
'GetMembershipFeesUseCase',
|
|
'GetPaymentsUseCase',
|
|
'GetPrizesUseCase',
|
|
'GetSponsorBillingUseCase',
|
|
'GetWalletUseCase',
|
|
'ProcessWalletTransactionUseCase',
|
|
'UpdateMemberPaymentUseCase',
|
|
'UpdatePaymentStatusUseCase',
|
|
'UpsertMembershipFeeUseCase',
|
|
];
|
|
|
|
for (const name of expectedExports) {
|
|
expect(exported[name], `missing export: ${name}`).toBeDefined();
|
|
}
|
|
});
|
|
}); |