Transpose financials tables and expose company KPI metrics
This commit is contained in:
@@ -44,12 +44,13 @@ function filingWithExtraction(): Filing {
|
||||
}
|
||||
|
||||
describe('filing response redaction', () => {
|
||||
it('removes internal extraction fields while preserving public analysis fields', () => {
|
||||
it('removes internal extraction fields while preserving public fields and company metrics', () => {
|
||||
const redacted = redactInternalFilingAnalysisFields(filingWithExtraction());
|
||||
|
||||
expect(redacted.analysis?.provider).toBe('zhipu');
|
||||
expect(redacted.analysis?.model).toBe('glm-4.7-flashx');
|
||||
expect(redacted.analysis?.text).toBe('Report text');
|
||||
expect(redacted.analysis?.companyMetrics).toEqual(['g']);
|
||||
expect(redacted.analysis?.extraction).toBeUndefined();
|
||||
expect(redacted.analysis?.extractionMeta).toBeUndefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user