@@ -0,0 +1,18 @@
|
||||
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)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user