mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
refactor: update to Angular 17
This commit is contained in:
@@ -104,11 +104,11 @@ describe('groupByStable', () => {
|
||||
describe('groupByProperty', function () {
|
||||
it('should group by property', () => {
|
||||
const array = [
|
||||
{id: 1, name: 'one'},
|
||||
{id: 2, name: 'two'},
|
||||
{id: 3, name: 'three'},
|
||||
{id: 4, name: 'four'},
|
||||
{id: 5, name: 'five'},
|
||||
{id: /** @type {1} */ 1, name: /** @type {'one'} */ 'one'},
|
||||
{id: /** @type {2} */ 2, name: /** @type {'two'} */ 'two'},
|
||||
{id: /** @type {3} */ 3, name: /** @type {'three'} */ 'three'},
|
||||
{id: /** @type {4} */ 4, name: /** @type {'four'} */ 'four'},
|
||||
{id: /** @type {5} */ 5, name: /** @type {'five'} */ 'five'},
|
||||
];
|
||||
|
||||
const result = groupByProperty(array, 'name');
|
||||
|
||||
Reference in New Issue
Block a user