Files
Jyotisha/frontend/tests/rectification-varga-sentence.test.ts
T
Jesse_Chen c8af18e90a
Independent Staging Quality Gate / validate (push) Failing after 9m39s
Independent Staging Quality Gate / publish (push) Has been skipped
fix(rectification): show the house table and hide the activity fold
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 20:11:51 +08:00

14 lines
520 B
TypeScript

import assert from "node:assert/strict";
import test from "node:test";
import { vargaSentenceFromMethods } from "../src/lib/rectification-varga-sentence.ts";
test("varga sentence names public methods once and ignores unknown ids", () => {
assert.equal(
vargaSentenceFromMethods(["d1-rashi", "d9-navamsa", "d1-rashi", "secret-method"]),
"本轮对照了D1 本命盘、D9 婚姻分盘。",
);
assert.equal(vargaSentenceFromMethods([]), null);
assert.equal(vargaSentenceFromMethods(undefined), null);
});