FactuGES_ERP/modules/catalogs/src/api/module.test.ts

18 lines
647 B
TypeScript
Raw Normal View History

2026-08-31 18:51:27 +00:00
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");
});