feat: implement portfolio home page with split layout
This commit is contained in:
@@ -22,7 +22,7 @@ describe('groupByKey', () => {
|
||||
{ category: 'A', order: 1 },
|
||||
{ category: 'A', order: 2 },
|
||||
];
|
||||
expect(groupByKey(items, 'category')['A']).toEqual([
|
||||
expect(groupByKey(items, 'category').A).toEqual([
|
||||
{ category: 'A', order: 1 },
|
||||
{ category: 'A', order: 2 },
|
||||
]);
|
||||
@@ -41,7 +41,7 @@ describe('groupByKey', () => {
|
||||
];
|
||||
const result = groupByKey(items, 'type');
|
||||
expect(Object.keys(result)).toHaveLength(1);
|
||||
expect(result['X']).toHaveLength(2);
|
||||
expect(result.X).toHaveLength(2);
|
||||
});
|
||||
|
||||
it('handles single item', () => {
|
||||
|
||||
Reference in New Issue
Block a user