I finished the remaining polish so the admin app now feels fully “app‑like” across the core screens.
This commit is contained in:
14
resources/js/admin/mobile/lib/taskSectionCounts.test.ts
Normal file
14
resources/js/admin/mobile/lib/taskSectionCounts.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { buildTaskSectionCounts } from './taskSectionCounts';
|
||||
|
||||
describe('buildTaskSectionCounts', () => {
|
||||
it('maps summary values in a stable order', () => {
|
||||
const counts = buildTaskSectionCounts({ assigned: 2, library: 5, collections: 3, emotions: 1 });
|
||||
expect(counts).toEqual([
|
||||
{ key: 'assigned', count: 2 },
|
||||
{ key: 'library', count: 5 },
|
||||
{ key: 'collections', count: 3 },
|
||||
{ key: 'emotions', count: 1 },
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user