Skip to content

Commit

Permalink
fixing backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurikam2003 committed Jul 31, 2024
1 parent a94be17 commit 312b6d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/test/services/FroshServices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('FroshServices', () => {
it('.updateFroshInfo(userId, updateInfo)\t\t\t|\tUpdating Frosh Information (INVALID USER ID)', async () => {
await assert.rejects(FroshServices.updateFroshInfo('999999', updateInfo), {
name: 'Error',
message: 'UNABLE_TO_UPDATE_FROSH',
message: 'INVALID_PAYMENT_ITEM',
});
});

Expand Down
4 changes: 2 additions & 2 deletions server/test/services/PaymentServices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('PaymentServices', () => {
it('.updatePayment(...)\t|\tUpdating a payment (FROSH_NOT_FOUND)', async () => {
await assert.rejects(PaymentServices.updatePayment('123452131326', 123), {
name: 'Error',
message: 'FROSH_NOT_FOUND',
message: 'PAYMENT_NOT_FOUND',
});
});

Expand Down Expand Up @@ -306,7 +306,7 @@ describe('PaymentServices', () => {
it('.expirePayment(...)\t|\tExpiring a payment (FROSH_NOT_FOUND)', async () => {
await assert.rejects(PaymentServices.expirePayment('none existent'), {
name: 'Error',
message: 'FROSH_NOT_FOUND',
message: 'PAYMENT_NOT_FOUND',
});
});
});

0 comments on commit 312b6d0

Please sign in to comment.