fix: replace remaining ASCII umlauts in characters.ts and tests
- vertraeumt → verträumt, Froehlich → Fröhlich, grossmuetterlich → grossmütterlich - Updated matching test assertions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,14 +17,14 @@ export const companions: CompanionDefinition[] = [
|
|||||||
type: "fee",
|
type: "fee",
|
||||||
name: "Lila",
|
name: "Lila",
|
||||||
emoji: "\u{1F9DA}",
|
emoji: "\u{1F9DA}",
|
||||||
personality: "Sanft, ermutigend, ein bisschen vertraeumt",
|
personality: "Sanft, ermutigend, ein bisschen verträumt",
|
||||||
avatarUrl: feeLilaAvatar,
|
avatarUrl: feeLilaAvatar,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "einhorn",
|
type: "einhorn",
|
||||||
name: "Stella",
|
name: "Stella",
|
||||||
emoji: "\u{1F984}",
|
emoji: "\u{1F984}",
|
||||||
personality: "Froehlich, enthusiastisch, feiert jeden kleinen Erfolg",
|
personality: "Fröhlich, enthusiastisch, feiert jeden kleinen Erfolg",
|
||||||
avatarUrl: einhornStellaAvatar,
|
avatarUrl: einhornStellaAvatar,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -38,7 +38,7 @@ export const companions: CompanionDefinition[] = [
|
|||||||
type: "eule",
|
type: "eule",
|
||||||
name: "Elsa",
|
name: "Elsa",
|
||||||
emoji: "\u{1F989}",
|
emoji: "\u{1F989}",
|
||||||
personality: "Geduldig, warm, grossmuetterlich",
|
personality: "Geduldig, warm, grossmütterlich",
|
||||||
avatarUrl: euleElsaAvatar,
|
avatarUrl: euleElsaAvatar,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ describe("getGreeting", () => {
|
|||||||
const systemPrompt = vi.mocked(generateText).mock.calls[0]![1];
|
const systemPrompt = vi.mocked(generateText).mock.calls[0]![1];
|
||||||
expect(systemPrompt).toContain("Lila");
|
expect(systemPrompt).toContain("Lila");
|
||||||
expect(systemPrompt).toContain(
|
expect(systemPrompt).toContain(
|
||||||
"Sanft, ermutigend, ein bisschen vertraeumt",
|
"Sanft, ermutigend, ein bisschen verträumt",
|
||||||
);
|
);
|
||||||
expect(systemPrompt).toMatch(/morgen|mittag|abend/);
|
expect(systemPrompt).toMatch(/morgen|mittag|abend/);
|
||||||
expect(systemPrompt).toContain("Max. 2 kurze Sätze");
|
expect(systemPrompt).toContain("Max. 2 kurze Sätze");
|
||||||
@@ -213,14 +213,14 @@ describe("getForestComment", () => {
|
|||||||
it("system prompt includes element description and companion personality", async () => {
|
it("system prompt includes element description and companion personality", async () => {
|
||||||
vi.mocked(loadConfig).mockResolvedValue(TEST_CONFIG);
|
vi.mocked(loadConfig).mockResolvedValue(TEST_CONFIG);
|
||||||
vi.mocked(checkRateLimit).mockResolvedValue(true);
|
vi.mocked(checkRateLimit).mockResolvedValue(true);
|
||||||
vi.mocked(generateText).mockResolvedValue("Wie wunderschoen!");
|
vi.mocked(generateText).mockResolvedValue("Wie wunderschön!");
|
||||||
|
|
||||||
await getForestComment("einhorn", "ein leuchtender Pilz", db);
|
await getForestComment("einhorn", "ein leuchtender Pilz", db);
|
||||||
|
|
||||||
const systemPrompt = vi.mocked(generateText).mock.calls[0]![1];
|
const systemPrompt = vi.mocked(generateText).mock.calls[0]![1];
|
||||||
expect(systemPrompt).toContain("Stella");
|
expect(systemPrompt).toContain("Stella");
|
||||||
expect(systemPrompt).toContain(
|
expect(systemPrompt).toContain(
|
||||||
"Froehlich, enthusiastisch, feiert jeden kleinen Erfolg",
|
"Fröhlich, enthusiastisch, feiert jeden kleinen Erfolg",
|
||||||
);
|
);
|
||||||
expect(systemPrompt).toContain("ein leuchtender Pilz");
|
expect(systemPrompt).toContain("ein leuchtender Pilz");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user