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

This commit is contained in:
SADIK KUZU
2022-10-11 17:25:56 +02:00
committed by GitHub
parent 37d2a6d544
commit 3522ce6f34
+4 -4
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(