9ac6d96dee
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
762 B
JavaScript
15 lines
762 B
JavaScript
import { describe, it, expect } from 'vitest';
|
|
import { buildMentorVerdictPrompt, buildMentorSpecVerdictPrompt } from './mentor-verdict.mjs';
|
|
|
|
describe('mentor re-eval instruction', () => {
|
|
it('verdict-промпт: system содержит инструкцию переоценки', () => {
|
|
const { system } = buildMentorVerdictPrompt({ plan: { steps: [] } });
|
|
expect(system).toContain('Переоцени ТЕКУЩИЙ');
|
|
expect(system).toContain('снятое НЕ повторяй');
|
|
});
|
|
it('spec-промпт: system содержит инструкцию переоценки', () => {
|
|
const { system } = buildMentorSpecVerdictPrompt({ specContent: 'x' });
|
|
expect(system).toContain('Переоцени ТЕКУЩИЙ');
|
|
});
|
|
});
|