Skip to content

Commit

Permalink
feature(api): add isAdjustedForAccessibility to certif course serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrecoin committed Oct 7, 2024
1 parent d4f2321 commit cc0eb6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const serialize = function (certificationCourse) {
'firstName',
'lastName',
'version',
'isAdjustedForAccessibility',
],
assessment: {
ref: 'id',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ class CertificationCourse {
completedAt: this._completedAt,
isPublished: this._isPublished,
isRejectedForFraud: this._isRejectedForFraud,
isAdjustedForAccessibility: this._isAdjustedForAccessibility,
verificationCode: this._verificationCode,
assessment: this._assessment,
challenges: this._challenges,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('Unit | Serializer | JSONAPI | certification-course-serializer', functi
certificationIssueReports: [],
hasSeenEndTestScreen: true,
version: 2,
isAdjustedForAccessibility: true,
});

const issueReport = new CertificationIssueReport({
Expand All @@ -40,6 +41,7 @@ describe('Unit | Serializer | JSONAPI | certification-course-serializer', functi
'has-seen-end-test-screen': true,
'first-name': certificationCourse.toDTO().firstName,
'last-name': certificationCourse.toDTO().lastName,
'is-adjusted-for-accessibility': true,
version: 2,
},
relationships: {
Expand Down

0 comments on commit cc0eb6d

Please sign in to comment.