Quality Assurance Projects - Issue Tracker - Failing item 10 over and over. Help!

I am facing a

Uncaught AssertionError: expected undefined to equal ‘successfully deleted’

My code is as follow:

 test('Delete an issue: DELETE request to /api/issues/{project}', function(done) {
                chai.request(server)
                    .delete('/api/issues/testing123')
                    .send({ _id: issue1._id })
                    .end(function(err, res) {
                        //console.log(_id);
                        console.log(issue1._id);
                        
                        assert.equal(res.status, 200);
                        assert.equal(res.body.result, 'successfully deleted');
                        assert.equal(res.body._id, issue1._id);

                        if(err){
                            console.log(err);
                        }
                        
                        chai.request(server)
                            .delete('/api/issues/testing123')
                            .send({ _id: issue2._id })
                            .end(function(err, res) {
                                assert.equal(res.status, 200);
                                assert.equal(res.body.result, 'successfully deleted');
                                assert.equal(res.body._id, issue2._id);
                                done();
                            });
                    });

I don’t understand what I am doing wrong

Hello and welcome, pls post the link to the issue tracker page so it can be checked.

Please post a repo with all your code.

Did you try logging out req.body to see what it contains?

Does the first delete test work, or are they both failing? Why are you deleting twice?