mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
fix(admin): render standalone feature interests
This commit is contained in:
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');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user