FactuGES_ERP/modules/catalogs/src/api/module.test.ts
David d57b71c200 refactor: standardize import statements and formatting across components
- Updated import statements in `textarea.tsx`, `toggle.tsx`, and `tooltip.tsx` for consistency.
- Added missing semicolons and adjusted formatting in `use-mobile.ts` and `use-mobile.tsx`.
- Cleaned up `package.json` and `root.json` files by removing unnecessary line breaks.
- Simplified `turbo.json` by consolidating array formatting for better readability.
2026-09-10 13:26:33 +02:00

20 lines
654 B
TypeScript

import assert from "node:assert/strict";
import test from "node:test";
import { catalogsModule } from "./module";
test("catalogsModule compone el finder público de payment methods sin HTTP", async () => {
const setup = await catalogsModule.setup?.({
database: {},
transactionContext: {},
audit: { recordMutation: async () => ({ isFailure: false }) },
getService: () => ({}),
logger: { info: () => undefined },
} as never);
const paymentMethods = setup?.services?.paymentMethods as {
finder: { constructor: { name: string } };
};
assert.equal(paymentMethods.finder.constructor.name, "PaymentMethodPublicFinder");
});