apis icon indicating copy to clipboard operation
apis copied to clipboard

Aircraft endpoint, integration test fix

Open valentinoli opened this issue 6 years ago • 2 comments

Fix to integration test

valentinoli avatar Feb 03 '19 20:02 valentinoli

I took a quick look at it. You were simply misconfiguring nock, and missing the fixture for the "flight not found" test. nock can be a bit hard to grasp. Please look at the commit I did.

fyi, you can run npm run test locally, and you should get the same errors. No need to push to GitHub to test. We'll probably squash merge this. That way it will just be one commit and the number of commits wont be an issue :)

MiniGod avatar Feb 05 '19 20:02 MiniGod

Thanks for taking a look! I have never used nock before but understand it better now. I tried running npm run test locally but it wasn't working for some reason Uncaught Error: connect ECONNREFUSED 127.0.0.1:3101 Sorry about all the commits! What is the next step?

valentinoli avatar Feb 07 '19 08:02 valentinoli