Added cascading donor deletion tests

ref #66
This commit is contained in:
2021-01-12 20:00:02 +01:00
parent 71537b283f
commit 4375ca92d3
2 changed files with 111 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ describe('DELETE distance donation', () => {
expect(res.status).toEqual(200);
expect(res.headers['content-type']).toContain("application/json")
});
it('creating a new fixed donation should return 200', async () => {
it('creating a new distance donation should return 200', async () => {
const res = await axios.post(base + '/api/donations/distance', {
"runner": added_runner.id,
"amountPerDistance": 100,