- 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.
20 lines
654 B
TypeScript
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");
|
|
});
|