Help!, What can I do here?

Tell us what’s happening:
I’m on Run Functional Tests on an API Response using Chai-HTTP III
And I already passed all the tests, but there is no validation (image)

Your project link(s)

solution: https://replit.com/@nicolascaldero9/boilerplate-mochachai-3

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

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

Link to the challenge:

my code on this problem is:

    // #3
    test('Send {surname: "Colombo"}', function (done) {
      chai
        .request(server)
        .put('/travellers')
        .send({
          "surname": "Colombo"
        })
        .end(function (err, res) {
          assert.equal(res.status, 200);
          assert.equal(res.type, "'application/json'" )
          assert.equal(res.body.name, "Cristoforo")
          assert.equal(res.body.surname,"Colombo")
          done();
        });
    });

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