I think there is a bug in this challenge

For the Quality Assurance and Testing with Chai - Run Functional Tests on an API Response using Chai-HTTP IV - PUT method chal.

i think i got my code right,but the tests are not passing.

Your code so far

test('send {surname: "da Verrazzano"}', function(done) {
  /** place the chai-http request code here... **/
  chai
    .request(server)
    .put('/travellers')
    .send({ surname: "da Verrazzano" })
    /** place your tests inside the callback **/
    .end(function(err, res) {
      assert.equal(res.status, 200, "response status should be 200");
      assert.equal(res.type, 'application/json', "Response should be json");
      assert.equal(res.body.name, 'Giovanni', "name is Giovanni");
      assert.equal(res.body.surname, 'da Verrazzano',"that is the surname");
      done();
    });
});

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0.

Challenge: Run Functional Tests on an API Response using Chai-HTTP IV - PUT method

Link to the challenge:

Welcome Abasimfon,

It would be much easier to debug, if we could see all of your code.

Could you please post a link to your Glitch project?