Files
knowledge-governance/web/src/qaInlineFields.test.ts
T
姚章浩 09b2c1dce5
build / build (push) Successful in 1m17s
fix(qa): 表头筛选并统一未覆盖正确性待确认
修正筛选入口位置:五项条件在表头就地选择,保持完整集筛选与无感续载。
统一固定规则:未覆盖一律待确认,原问答/人工模型证据不改写,已覆盖仍保留点踩优先。
验证:行为红绿、前端/Go全套及隔离PostgreSQL全mirror竞态通过;完整本地门禁与原生备份真实恢复通过。
2026-10-25 13:58:08 +08:00

11 lines
653 B
TypeScript

import { describe, expect, it } from 'vitest'
import { fieldChoices } from './qaInlineFields'
describe('correctness choices follow effective coverage', () => {
it('allows pending only for uncovered, without changing coverage options', () => {
for (const coverage of ['是', '部分覆盖', '待确认', '否但不计入', ''])
expect(fieldChoices('is_correct', ['是', '否', '待确认'], coverage)).toEqual(['是', '否'])
expect(fieldChoices('is_correct', ['是', '否', '待确认'], '否')).toEqual(['待确认'])
expect(fieldChoices('coverage', ['是', '否', '待确认'], '是')).toEqual(['是', '否', '待确认'])
})
})