Ganaa
1
Tell us what’s happening:
Describe your issue in detail here.
Your project link(s)
solution: https://replit.com/@ganaa1477/boilerplate-mochachai-7
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Challenge: Run Functional Tests on an API Response using Chai-HTTP IV - PUT method
Link to the challenge:
Can you point us to somewhere specific in your code? Thanks.
1 Like
Ganaa
3
Oh so sorry. Did not know it comes as a whole. Here is a problem.
// #4
test(‘Send {surname: “da Verrazzano”}’, function (done) {
chai
.request(server)
.put(’/travellers’)
.send({ surname: ‘da Verrazzano’ })
.end(function(err, res) {
assert.equal(res.status, 200,);
assert.equal(res.type, ‘application/json’,);
assert.equal(res.body.name, ‘Giovanni’);
assert.equal(res.body.surname, ‘da Verrazzano’);
done();
});
It is how I have done but could not pass. Trying to figure out what is wrong. Thanks.
system
Closed
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.