mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 12:13:31 +08:00
fix(api): write variable names in correct manner (#47883)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user