website refactor
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
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();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1,7 +0,0 @@
|
||||
import * as mod from '@core/payments/domain/entities/index';
|
||||
|
||||
describe('payments/domain/entities/index.ts', () => {
|
||||
it('imports', () => {
|
||||
expect(mod).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user