Need help to figure out what is wrong here

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36

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

Link to the challenge:

Can you point us to somewhere specific in your code? Thanks.

1 Like

Oh so sorry. Did not know it comes as a whole. Here is a problem.

// #4
test(‘Send {surname: “da Verrazzano”}’, function (done) {
.send({ surname: ‘da Verrazzano’ })
.end(function(err, res) {
assert.equal(res.status, 200,);
assert.equal(res.type, ‘application/json’,);
assert.equal(, ‘Giovanni’);
assert.equal(res.body.surname, ‘da Verrazzano’);


It is how I have done but could not pass. Trying to figure out what is wrong. Thanks.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.