ref #193
This commit is contained in:
		@@ -181,7 +181,7 @@ describe('POST /api/donations/fixed successfully', () => {
 | 
			
		||||
		expect(res.data).toEqual({
 | 
			
		||||
			"donor": added_donor,
 | 
			
		||||
			"amount": 1000,
 | 
			
		||||
			"payedAmount": 0,
 | 
			
		||||
			"paidAmount": 0,
 | 
			
		||||
			"status": "OPEN",
 | 
			
		||||
			"responseType": "DONATION"
 | 
			
		||||
		});
 | 
			
		||||
@@ -190,7 +190,7 @@ describe('POST /api/donations/fixed successfully', () => {
 | 
			
		||||
		const res = await axios.post(base + '/api/donations/fixed', {
 | 
			
		||||
			"donor": added_donor.id,
 | 
			
		||||
			"amount": 1000,
 | 
			
		||||
			"payedAmount": 1000
 | 
			
		||||
			"paidAmount": 1000
 | 
			
		||||
		}, axios_config);
 | 
			
		||||
		delete res.data.id;
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
@@ -198,8 +198,8 @@ describe('POST /api/donations/fixed successfully', () => {
 | 
			
		||||
		expect(res.data).toEqual({
 | 
			
		||||
			"donor": added_donor,
 | 
			
		||||
			"amount": 1000,
 | 
			
		||||
			"payedAmount": 1000,
 | 
			
		||||
			"status": "PAYED",
 | 
			
		||||
			"paidAmount": 1000,
 | 
			
		||||
			"status": "PAID",
 | 
			
		||||
			"responseType": "DONATION"
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
@@ -252,8 +252,8 @@ describe('POST /api/donations/distance successfully', () => {
 | 
			
		||||
			"amountPerDistance": 100,
 | 
			
		||||
			"runner": added_runner,
 | 
			
		||||
			"amount": 0,
 | 
			
		||||
			"payedAmount": 0,
 | 
			
		||||
			"status": "PAYED",
 | 
			
		||||
			"paidAmount": 0,
 | 
			
		||||
			"status": "PAID",
 | 
			
		||||
			"responseType": "DISTANCEDONATION"
 | 
			
		||||
		})
 | 
			
		||||
	});
 | 
			
		||||
@@ -262,7 +262,7 @@ describe('POST /api/donations/distance successfully', () => {
 | 
			
		||||
			"runner": added_runner.id,
 | 
			
		||||
			"amountPerDistance": 100,
 | 
			
		||||
			"donor": added_donor.id,
 | 
			
		||||
			"payedAmount": 1000
 | 
			
		||||
			"paidAmount": 1000
 | 
			
		||||
		}, axios_config);
 | 
			
		||||
		delete res.data.id;
 | 
			
		||||
		expect(res.status).toEqual(200);
 | 
			
		||||
@@ -272,8 +272,8 @@ describe('POST /api/donations/distance successfully', () => {
 | 
			
		||||
			"amountPerDistance": 100,
 | 
			
		||||
			"runner": added_runner,
 | 
			
		||||
			"amount": 0,
 | 
			
		||||
			"payedAmount": 1000,
 | 
			
		||||
			"status": "PAYED",
 | 
			
		||||
			"paidAmount": 1000,
 | 
			
		||||
			"status": "PAID",
 | 
			
		||||
			"responseType": "DISTANCEDONATION"
 | 
			
		||||
		})
 | 
			
		||||
	});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user