feat(ai): finalize AI magic edits epic rollout and operations
This commit is contained in:
@@ -30,4 +30,14 @@ describe('groupNotificationsByScope', () => {
|
||||
const grouped = groupNotificationsByScope(items);
|
||||
expect(grouped.map((group) => group.scope)).toEqual(['photos', 'events', 'general']);
|
||||
});
|
||||
|
||||
it('places ai scope before general', () => {
|
||||
const items: Item[] = [
|
||||
{ id: '1', scope: 'general', is_read: true },
|
||||
{ id: '2', scope: 'ai', is_read: true },
|
||||
];
|
||||
|
||||
const grouped = groupNotificationsByScope(items);
|
||||
expect(grouped.map((group) => group.scope)).toEqual(['ai', 'general']);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user