Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
* field masterCommissionId was renamed to masterCommission on route GET /commissions
* also updated documentation to match this change
  • Loading branch information
TeddyRoncin committed Nov 21, 2023
1 parent 1733ad8 commit 270b211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ components:
type: string
color:
type: string
masterCommissionId:
masterCommission:
type: string

responses:
Expand Down
2 changes: 1 addition & 1 deletion tests/commissions/getCommissions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('GET /commissions', () => {
expect(databaseCommission).to.not.be.undefined;
expect(commission.name).to.be.equal(databaseCommission.name);
expect(commission.color).to.be.equal(databaseCommission.color);
expect(commission.masterCommissionId).to.be.equal(databaseCommission.masterCommissionId);
expect(commission.masterCommission).to.be.equal(databaseCommission.masterCommissionId);
expect(commission).to.not.have.key('position');
expect(lastPosition).to.be.lessThanOrEqual(databaseCommission.position);
lastPosition = databaseCommission.position;
Expand Down

0 comments on commit 270b211

Please sign in to comment.