Quality Assurance and Testing with Chai - Run Functional Tests on an API Response using Chai-HTTP III - PUT method

i m unable to proceed from this lesson coz it shows that all my test cases had not passed. I have cross checked everything but I am stuck on this lesson. What to do now ??? :frowning:

solution: Glitch :・゚✧

Your browser information:

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

Challenge Information:

Quality Assurance and Testing with Chai - Run Functional Tests on an API Response using Chai-HTTP III - PUT method

If you log out res.body.name in the test you can see it is the string 'unknow'. If you look in server.js you can see that is the default case in the switch.

The test is test('Send {surname: "Colombo"}' so that is what you should send, just the {surname: "Colombo"}. But you also have a typo for the surname string value (Columbo should be Colombo)

2 Likes

ahh… thanks that was a typo :smiley:

1 Like

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