Tell us what’s happening:
Please see screenshot below. All tests should pass but the tests below all passed… ?
Is this a bug? Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.
Challenge: Run Functional Tests on an API Response using Chai-HTTP III - PUT method
I’ve also seen in another thread that this is a known bug issue with Repl.it and this particular challenge? But I’m not sure if this was already resolved
I’ve copied and paste the solution from FCC and still won’t work… this is definitely a bug. But i can’t move on to the next lesson without passing this one. So I’m stuck
The test text might be a bit misleading. When it says “all tests should pass” it is not referring to the freeCodeCamp tests you have shown in the screenshot. The tests being referred to are the tests you have written on your app.
Now, would you mind sharing a link to your project code? That way, we can get a better look at what is going on.
If i change the res.body.name to make the test pass, it will fail the other test case for res.body.name on freecodecamp. The link to my repl.it is already posted above.
I confused the test('send {surname: "Colombo"}' as the one that needs altering and the instruction said to “alter” something but actually rather that I needed to “add” something to the code.