test: align paired prompt expectation with AGENT_LANGUAGE

This commit is contained in:
Eyejoker
2026-03-31 14:13:43 +09:00
parent 2107e033b7
commit f04e5d06b3

View File

@@ -5,6 +5,7 @@ import { fileURLToPath } from 'url';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { AGENT_LANGUAGE } from './config.js';
import {
getPairedRoomPromptPath,
getPlatformPromptPath,
@@ -54,7 +55,10 @@ describe('platform-prompts', () => {
expect(getPairedRoomPromptPath('claude-code')).toBe(
path.join(promptsDir, 'claude-paired-room.md'),
);
expect(readPairedRoomPrompt('claude-code')).toBe('Claude paired prompt');
const expected = AGENT_LANGUAGE
? `Claude paired prompt\n\n## Language\n\nAlways respond in ${AGENT_LANGUAGE}.`
: 'Claude paired prompt';
expect(readPairedRoomPrompt('claude-code')).toBe(expected);
});
it('maps Codex paired-room prompts to the shared reviewer prompt while preserving failover identity wording', () => {