18 lines
678 B
TypeScript
18 lines
678 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { resolveDomainPolarityGuard } from "../src/services/assistantRuntimeGuards";
|
|
|
|
describe("assistant runtime guards utf8 regression", () => {
|
|
it("resolves supplier polarity for declined russian account wording", () => {
|
|
const guard = resolveDomainPolarityGuard({
|
|
userMessage: "хвосты покажи по счёту 60 на август 2022",
|
|
focusDomainHint: "settlements_60_62"
|
|
});
|
|
|
|
expect(guard.outcome).toBe("passed");
|
|
expect(guard.polarity).toBe("supplier_payable");
|
|
expect(guard.account_scope).toContain("60");
|
|
expect(guard.resolved_account_anchors).toContain("60");
|
|
});
|
|
});
|