feat(版本详情): 优化任务统计与测试轮次
This commit is contained in:
@@ -33,6 +33,12 @@ test('normalizeTestCaseOnCreate forces pending and clears actual timestamps', ()
|
||||
assert.equal(result.completedAt, undefined);
|
||||
});
|
||||
|
||||
test('normalizeTestCaseOnCreate defaults missing roundNo to the first test round', () => {
|
||||
const result = normalizeTestCaseOnCreate(tc());
|
||||
|
||||
assert.equal(result.roundNo, 1);
|
||||
});
|
||||
|
||||
test('pending to running writes startedAt', () => {
|
||||
const result = applyTestCaseTransition(tc(), 'running', {
|
||||
now: new Date('2026-06-25T01:00:00.000Z'),
|
||||
|
||||
Reference in New Issue
Block a user