Files
template-app/modules/ledger/__tests__/module.test.ts
T
2026-11-14 09:56:45 +00:00

19 lines
701 B
TypeScript

import { buildRegistry } from "@conusai-kit/core"
import { tenancyModule } from "@conusai-kit/tenancy"
import { describe, expect, it } from "vitest"
import { ledgerModule } from "../index.js"
const registry = buildRegistry([tenancyModule, ledgerModule])
describe("the ledger module", () => {
it("registers beside the kernel", () => {
expect(registry.modules.map((module) => module.id)).toContain("ledger")
})
it("has the same messages in English and in Lithuanian", () => {
const { en, lt } = registry.catalogues
expect(Object.keys(lt?.ledger ?? {}).sort()).toEqual(Object.keys(en?.ledger ?? {}).sort())
expect(Object.keys(en?.ledger ?? {}).length).toBeGreaterThan(0)
})
})