ref #193
This commit is contained in:
		| @@ -182,6 +182,7 @@ describe('POST /api/donations/fixed successfully', () => { | ||||
| 			"donor": added_donor, | ||||
| 			"amount": 1000, | ||||
| 			"payedAmount": 0, | ||||
| 			"status": "OPEN", | ||||
| 			"responseType": "DONATION" | ||||
| 		}); | ||||
| 	}); | ||||
| @@ -198,6 +199,7 @@ describe('POST /api/donations/fixed successfully', () => { | ||||
| 			"donor": added_donor, | ||||
| 			"amount": 1000, | ||||
| 			"payedAmount": 1000, | ||||
| 			"status": "PAYED", | ||||
| 			"responseType": "DONATION" | ||||
| 		}); | ||||
| 	}); | ||||
| @@ -236,7 +238,7 @@ describe('POST /api/donations/distance successfully', () => { | ||||
| 		expect(res.status).toEqual(200); | ||||
| 		expect(res.headers['content-type']).toContain("application/json") | ||||
| 	}); | ||||
| 	it('creating a new fixed donation with most params should return 200', async () => { | ||||
| 	it('creating a new distance donation with most params should return 200', async () => { | ||||
| 		const res = await axios.post(base + '/api/donations/distance', { | ||||
| 			"runner": added_runner.id, | ||||
| 			"amountPerDistance": 100, | ||||
| @@ -251,10 +253,11 @@ describe('POST /api/donations/distance successfully', () => { | ||||
| 			"runner": added_runner, | ||||
| 			"amount": 0, | ||||
| 			"payedAmount": 0, | ||||
| 			"status": "PAYED", | ||||
| 			"responseType": "DISTANCEDONATION" | ||||
| 		}) | ||||
| 	}); | ||||
| 	it('creating a new fixed donation with all params should return 200', async () => { | ||||
| 	it('creating a new distance donation with all params should return 200', async () => { | ||||
| 		const res = await axios.post(base + '/api/donations/distance', { | ||||
| 			"runner": added_runner.id, | ||||
| 			"amountPerDistance": 100, | ||||
| @@ -270,6 +273,7 @@ describe('POST /api/donations/distance successfully', () => { | ||||
| 			"runner": added_runner, | ||||
| 			"amount": 0, | ||||
| 			"payedAmount": 1000, | ||||
| 			"status": "PAYED", | ||||
| 			"responseType": "DISTANCEDONATION" | ||||
| 		}) | ||||
| 	}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user