Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TT-665 clean code
  • Loading branch information
Nicole Garcia committed May 25, 2022
commit 9af68bea1335066d1f43a2000f92020276504116
Original file line number Diff line number Diff line change
Expand Up @@ -364,40 +364,40 @@ describe('EntryFieldsComponent', () => {
it('activites are ordered using the payload of the action', () => {
const activities = [
{
id: '001',
id: '004',
name: 'Meeting',
description: 'Some description'
},
{
id: '002',
name: 'ABC',
id: '005',
name: 'ABCD',
description: 'Some description'
},
{
id: '003',
name: 'XYZ',
id: '006',
name: 'XYZA',
description: 'Some description'
},
];

const activitiesOrdered = [
{
id: '002',
name: 'ABC',
id: '005',
name: 'ABCD',
description: 'Some description'
},
{
id: '001',
id: '004',
name: 'Meeting',
description: 'Some description'
},
{
id: '003',
name: 'XYZ',
id: '006',
name: 'XYZA',
description: 'Some description'
},
];

const actionSubject = TestBed.inject(ActionsSubject) as ActionsSubject;
const action = {
type: ActivityManagementActionTypes.LOAD_ACTIVITIES_SUCCESS,
Expand Down