Files
Genarrative/src/services/storyEngine/narrativeQaReport.test.ts
kdletters cbc27bad4a
Some checks failed
CI / verify (push) Has been cancelled
init with react+axum+spacetimedb
2026-04-26 18:06:23 +08:00

23 lines
559 B
TypeScript

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 条');
});
});