This commit is contained in:
22
src/services/storyEngine/narrativeQaReport.test.ts
Normal file
22
src/services/storyEngine/narrativeQaReport.test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { buildNarrativeQaReport } from './narrativeQaReport';
|
||||
|
||||
describe('narrativeQaReport', () => {
|
||||
it('summarizes QA issues', () => {
|
||||
const report = buildNarrativeQaReport({
|
||||
issues: [
|
||||
{
|
||||
id: 'issue-1',
|
||||
severity: 'high',
|
||||
category: 'payoff',
|
||||
summary: '有关键 payoff 尚未回收。',
|
||||
relatedIds: ['thread-1'],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
expect(report.issues).toHaveLength(1);
|
||||
expect(report.summary).toContain('1 条');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user