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

Tell us what’s happening:
i keep getting this message where i have completed the tasks successfully with check marks on all tasks but i still cant move on?

Your project link(s)

solution: boilerplate-mochachai (3) - Replit

Your browser information:

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

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

Link to the challenge:

You seem to have removed the test environment variable from the secrets.

You have syntax errors, the error messages are telling you where they are. The one in the unit tests should be obvious. For the one in the functional test, the line number for the error is not where the issue is, it is caused by you closing the two most outer callback functions too early (line: 62/63)

You have removed the .keepOpen() call in test #3, add it back after the .request(server) call.


Fixing the mentioned issues makes your code pass.

1 Like

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