Put method part 2 no tests pass

Tell us what’s happening:
This exercise appears to be almost exactly the same as the previous one, which i was able to pass. However, even after meticulously copying by hand and also with copy/paste from the solution in the hint article (after much frustration) I cannot get any of the tests to pass.

I appear to get an “unexpected end of input” error. which doesn’t make much sense to me

Thanks for your assistance in advance

Your code so far
https://repl.it/@SethAlan/boilerplate-mochachai#tests/2_functional-tests.js

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: Run Functional Tests on an API Response using Chai-HTTP IV - PUT method

Link to the challenge:

The strange thing is, if I try the actual app, I get the correct result for da Verrazzano

I have just copied your code in an editor that does a minimum of validation (jsfiddle) - you have a missing } in tests/2_functional-tests.js, that’s why you get an “unexpected end of input”

1 Like

Thanks so much, I don’t know how I missed that red tag!