关键改动: - 增加计划日志汇总、需求覆盖草稿校验与对应测试 - 抽取工作台工作项 Hook,补充待办计数能力 - 优化版本详情中计划、任务、测试用例和 Bug 的筛选与展示 Co-Authored-By: Codex GPT-5 <codex@openai.com>
14 lines
367 B
TypeScript
14 lines
367 B
TypeScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { getWorkspacePendingCount } from './workspace-engine';
|
|
|
|
test('getWorkspacePendingCount counts unfinished work items only', () => {
|
|
const count = getWorkspacePendingCount([
|
|
{ completed: false },
|
|
{ completed: true },
|
|
{ completed: false },
|
|
]);
|
|
|
|
assert.equal(count, 2);
|
|
});
|