In order for my tests to be accurate I need the methods to return a status code.
Some of the calls look like this.
return res.json({msg: 'Invalid Phone Number (only xxxxxxxxxx)!',
status: 412});
Could you go through and change them to something like this.
return res.status(412).send({
msg: 'Invalid Phone Number (only xxxxxxxxxx)!'
});
the status object is the most important part.
In order for my tests to be accurate I need the methods to return a status code. Some of the calls look like this. return res.json({msg: 'Invalid Phone Number (only xxxxxxxxxx)!', status: 412}); Could you go through and change them to something like this.
return res.status(412).send({ msg: 'Invalid Phone Number (only xxxxxxxxxx)!' }); the status object is the most important part.