mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
style: prettier on W5 reconcile touchpoints
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
b094eaa2ae
commit
bbdc3fbd00
9 files changed
+32
-39
No files matched your search
@@ -1,16 +1,15 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import {
|
||||
parseKeyValueLine,
|
||||
parseKeyValuesSentinel,
|
||||
} from "../keyvalues";
|
||||
import { parseKeyValueLine, parseKeyValuesSentinel } from "../keyvalues";
|
||||
|
||||
/**
|
||||
* v1.4.22 Wave 3 B1+B2 — Coach evidence-block sentinel parser.
|
||||
*/
|
||||
describe("parseKeyValueLine", () => {
|
||||
it("parses a full line with unit + window", () => {
|
||||
expect(parseKeyValueLine("avg30 systolic: 138 [mmHg] (last30days)")).toEqual({
|
||||
expect(
|
||||
parseKeyValueLine("avg30 systolic: 138 [mmHg] (last30days)"),
|
||||
).toEqual({
|
||||
label: "avg30 systolic",
|
||||
value: "138",
|
||||
unit: "mmHg",
|
||||
|
||||
@@ -39,7 +39,9 @@ describe("getCoachSystemPrompt — EN", () => {
|
||||
expect(prompt).toMatch(/GROUND RULES/);
|
||||
expect(prompt).toMatch(/1\. Prose-first\./);
|
||||
expect(prompt).toMatch(/2\. Values belong in the evidence block\./);
|
||||
expect(prompt).toMatch(/3\. Missing data is an invitation, not a refusal\./);
|
||||
expect(prompt).toMatch(
|
||||
/3\. Missing data is an invitation, not a refusal\./,
|
||||
);
|
||||
expect(prompt).toMatch(/4\. Conservative phrasing\./);
|
||||
expect(prompt).toMatch(/5\. Motivational-interviewing micro-moves\./);
|
||||
expect(prompt).toMatch(/6\. Redirect off-topic input gracefully\./);
|
||||
@@ -104,7 +106,9 @@ describe("getCoachSystemPrompt — DE", () => {
|
||||
expect(prompt).toMatch(/2\. Werte gehören in den Evidenz-Block\./);
|
||||
expect(prompt).toMatch(/3\. Fehlende Daten sind eine Einladung/);
|
||||
expect(prompt).toMatch(/4\. Zurückhaltende Sprache\./);
|
||||
expect(prompt).toMatch(/5\. Mikro-Moves aus dem Motivational Interviewing\./);
|
||||
expect(prompt).toMatch(
|
||||
/5\. Mikro-Moves aus dem Motivational Interviewing\./,
|
||||
);
|
||||
expect(prompt).toMatch(/6\. Off-topic-Eingaben elegant umlenken\./);
|
||||
expect(prompt).toMatch(/7\. Verankere jede Zahl im SNAPSHOT\./);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user