feat(小宝预警): 增加 AI 解读触发策略
This commit is contained in:
@@ -180,3 +180,17 @@ test('calcXiaobaoVersionRisk preserves null expected release date as a compatibl
|
||||
|
||||
assert.equal(risk.expectedReleaseDate, null);
|
||||
});
|
||||
|
||||
test('calcXiaobaoVersionRisk preserves version display context for AI interpretation', () => {
|
||||
const risk = calcXiaobaoVersionRisk({
|
||||
version: version({ name: 'V2.0', productName: 'FTB', projectName: 'Project PM' }),
|
||||
devTasks: [],
|
||||
testCases: [],
|
||||
bugs: [],
|
||||
now: new Date('2026-07-02T01:00:00.000Z'),
|
||||
});
|
||||
|
||||
assert.equal(risk.versionName, 'V2.0');
|
||||
assert.equal(risk.productName, 'FTB');
|
||||
assert.equal(risk.projectName, 'Project PM');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user