Test passing in replit but not in freeCodeCamp

Tell us what’s happening:
Test is passing in Replit but when I submit it, it fails. I have compared my solution with the given solution, it fails. I have even copied the given solution and pasted it, it still fails. What do I need to do to get this to pass?

Your project link(s)

solution: https://replit.com/@smoentmann/boilerplate-mochachai-1

Your browser information:

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

Challenge: Run Functional Tests on API Endpoints using Chai-HTTP

Link to the challenge:

Hi there,
Do you have an extension on your browser? that might be causing the error. FCC is not compatible with certain browsers’ extensions

1 Like

This is tricky to figure out. Just before test #4 in code there’s one additional }); which should be after the test #4. This makes test confused, as tests output appears in different order than expected.

1 Like

Thank you. Moving the }); from test 3 to the end of test 4 worked for me! Much appreciated!

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