I have been trying to get the the mocha testing to work for Serverless v1.0 and have achieved it with moderate success. also the answer from flo helped a lot.
But i am not able send the path variable to it to the test method which is defined like this..
How do i pass this to my test function, my test function runs with this error
TypeError: Cannot read property 'phone' of undefined
can someone help me in this for how to pass the phone to my test function.