diff --git a/server/test/services/FroshServices.test.js b/server/test/services/FroshServices.test.js index 8afcfb3d..dceaa332 100644 --- a/server/test/services/FroshServices.test.js +++ b/server/test/services/FroshServices.test.js @@ -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', }); }); diff --git a/server/test/services/PaymentServices.test.js b/server/test/services/PaymentServices.test.js index 597bdefe..bd1b2bb6 100644 --- a/server/test/services/PaymentServices.test.js +++ b/server/test/services/PaymentServices.test.js @@ -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', }); }); @@ -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', }); }); });