Skip to content

Commit

Permalink
feat(api): add evolution property in serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBazin committed Oct 21, 2024
1 parent 051bcfb commit 728fb0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const serialize = function ({ participations, pagination }) {
'lastName',
'participantExternalId',
'masteryRate',
'evolution',
'reachedStage',
'totalStage',
'prescriberTitle',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('Unit | Serializer | JSONAPI | campaign-assessment-result-minimal-seria
lastName: 'McClane',
participantExternalId: 'Cop',
masteryRate: 1,
evolution: 'toto',
reachedStage: 2,
totalStage: 6,
prescriberTitle: 'titre prescripteur 1',
Expand All @@ -24,6 +25,7 @@ describe('Unit | Serializer | JSONAPI | campaign-assessment-result-minimal-seria
lastName: 'Gruber',
participantExternalId: 'Thief',
masteryRate: 0.99,
evolution: null,
reachedStage: null,
totalStage: null,
prescriberTitle: null,
Expand Down Expand Up @@ -51,6 +53,7 @@ describe('Unit | Serializer | JSONAPI | campaign-assessment-result-minimal-seria
'last-name': 'McClane',
'participant-external-id': 'Cop',
'mastery-rate': 1,
evolution: 'toto',
'reached-stage': 2,
'total-stage': 6,
'prescriber-title': 'titre prescripteur 1',
Expand All @@ -66,6 +69,7 @@ describe('Unit | Serializer | JSONAPI | campaign-assessment-result-minimal-seria
'last-name': 'Gruber',
'participant-external-id': 'Thief',
'mastery-rate': 0.99,
evolution: null,
'reached-stage': null,
'total-stage': null,
'prescriber-title': null,
Expand Down

0 comments on commit 728fb0c

Please sign in to comment.