Now forceing user deletion in tests
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/pr Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/pr Build is failing
				
			ref #99
This commit is contained in:
		@@ -18,7 +18,7 @@ beforeAll(async () => {
 | 
			
		||||
// ---------------
 | 
			
		||||
describe('adding + deletion (non-existant)', () => {
 | 
			
		||||
    it('delete', async () => {
 | 
			
		||||
        const res2 = await axios.delete(base + '/api/users/0', axios_config);
 | 
			
		||||
        const res2 = await axios.delete(base + '/api/users/0?force=true', axios_config);
 | 
			
		||||
        expect(res2.status).toEqual(204);
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
@@ -36,7 +36,7 @@ describe('adding + deletion (successfull)', () => {
 | 
			
		||||
        expect(res.status).toEqual(200);
 | 
			
		||||
    });
 | 
			
		||||
    it('delete', async () => {
 | 
			
		||||
        const res2 = await axios.delete(base + '/api/users/' + added_user.id, axios_config);
 | 
			
		||||
        const res2 = await axios.delete(base + '/api/users/' + added_user.id + "?force=true", axios_config);
 | 
			
		||||
        expect(res2.status).toEqual(200);
 | 
			
		||||
        expect(res2.headers['content-type']).toContain("application/json")
 | 
			
		||||
    });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user