fix(admin): render standalone feature interests

This commit is contained in:
jjbrunton committed 2026-09-05 16:57:57 +01:00
1 parent c776859183
commit a6233d0175
3 files changed
+57 -29

No files matched your search

@@ -0,0 +1,16 @@
import { describe, expect, it } from 'vitest';
import { formatFeatureName, toRecentFeatureInterest } from './featureInterests';
describe('toRecentFeatureInterest', () => {
it('preserves the standalone API feature field for dashboard rendering', () => {
const interest = toRecentFeatureInterest({
id: 'interest-1',
user_id: 'user-1',
feature: 'better_chat',
created_at: '2026-09-05T12:00:00.000Z',
});
expect(interest.feature).toBe('better_chat');
expect(formatFeatureName(interest.feature)).toBe('Better Chat');
});
});