15 lines
620 B
JavaScript
15 lines
620 B
JavaScript
import { describe, it, expect } from 'vitest';
|
|
import { buildSurfaceOutput } from './enforce-verdict-surface.mjs';
|
|
|
|
describe('buildSurfaceOutput', () => {
|
|
it('пусто → null (тихо)', () => {
|
|
expect(buildSurfaceOutput([])).toBeNull();
|
|
});
|
|
it('баннер(ы) + императив подтверждения', () => {
|
|
const out = buildSurfaceOutput([{ outcome: 'NO-GO', gate: 'judge', reason: 'x' }]);
|
|
expect(out).toContain('🚫 NO-GO [judge]');
|
|
expect(out).toContain('ПЕРВОЙ строкой ответа подтверди');
|
|
expect(out).toContain('`вердикт:');
|
|
});
|
|
});
|