news screen enhancement - 1

This commit is contained in:
Kazuma
2026-06-09 20:11:10 -04:00
parent 5655cde6bf
commit f0c794f0c0
13 changed files with 250 additions and 35 deletions
+2 -2
View File
@@ -85,12 +85,12 @@ test('BondScorer', async (t) => {
});
await t.test('handles null/undefined metrics gracefully', () => {
const metrics: BondMetrics = {
const metrics = {
ytm: null,
duration: 5,
creditRating: null,
creditRatingNumeric: null,
};
} as unknown as BondMetrics;
const result = BondScorer.score(metrics, DEFAULT_RULES);
// Should not crash