fix(api): write variable names in correct manner (#47883)

pull/47883/merge
SADIK KUZU 2022-10-11 18:25:56 +03:00 committed by GitHub
parent 37d2a6d544
commit 3522ce6f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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(