From 3522ce6f34b63f5d9922835307f31980de1fe0b9 Mon Sep 17 00:00:00 2001 From: SADIK KUZU Date: Tue, 11 Oct 2022 18:25:56 +0300 Subject: [PATCH] fix(api): write variable names in correct manner (#47883) --- api-server/src/server/utils/donation.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api-server/src/server/utils/donation.test.js b/api-server/src/server/utils/donation.test.js index b30f8f5f448..c4bf51a0615 100644 --- a/api-server/src/server/utils/donation.test.js +++ b/api-server/src/server/utils/donation.test.js @@ -79,12 +79,12 @@ describe('donation', () => { Authorization: `Bearer ${mockAccessToken}` } }; - const successVerificationResponce = { + const successVerificationResponse = { data: { verification_status: 'SUCCESS' } }; - const failedVerificationResponce = { + const failedVerificationResponse = { data: { verification_status: 'FAILED' } @@ -92,7 +92,7 @@ describe('donation', () => { it('calls paypal for Webhook verification', async () => { axios.post.mockImplementationOnce(() => - Promise.resolve(successVerificationResponce) + Promise.resolve(successVerificationResponse) ); await expect( @@ -112,7 +112,7 @@ describe('donation', () => { }); it('throws error if verification not successful', async () => { axios.post.mockImplementationOnce(() => - Promise.resolve(failedVerificationResponce) + Promise.resolve(failedVerificationResponse) ); await expect(