So what else are you testing?

Tell us what’s happening:
I’m passing individual tests but not the “All tests should pass” item. Since it is included as a separate item, they must be testing something beyond the individual tests. I’m doing the tests in the order as specified. I included error messages for the assert method, but I got the same result. So I’m not sure what else should I be checking.

Your code so far

// #3
    test('send {surname: "Colombo"}', function (done) {

        .end(function (err, res) {
          assert.equal(res.status, 200);
          assert.equal(res.type, 'application/json');
          assert.equal(, 'Cristoforo');
          assert.equal(res.body.surname, 'Colombo');


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15

Challenge: Learn How JavaScript Assertions Work

Link to the challenge:

The other four freeCodeCamp tests check whether your tests exist. The one that is failing is checking whether all the tests that you wrote pass.

Ah, okay I got it. I forgot about payload. I didn’t realize the significance of that one blank line. Thanks.

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