Tell us what’s happening:
Test is failing on FCC while passing in the testrunner output. The FCC system requires you to use ’ (single quotes) in your test case, while the test runner and language obviously do not. Worse still, using the built in formatter on Glitch changes single quotes to double quotes. So formatting your Glitch code will cause test failures on FCC.
Your code so far
Failing code excerpt (note the double quotes):
assert.equal(
res.body.surname,
"Colombo",
'res.body.surname should be "Colombo"'
);
Passing code (change to single quotes. meaning is unchanged, purely a style difference):
assert.equal(
res.body.surname,
'Colombo',
'res.body.surname should be "Colombo"'
);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36
.
Challenge: undefined
Link to the challenge:
https://www.freecodecamp.org/learn/information-security-and-quality-assurance/quality-assurance-and-testing-with-chai/run-functional-tests-on-an-api-response-using-chai-http-iii---put-method