18 lines
647 B
TypeScript
18 lines
647 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");
|
||
|
|
});
|