Skip to content

Aircraft endpoint#431

Closed
valentinoli wants to merge 2 commits into
apis-is:masterfrom
valentinoli:aircraft-endpoint
Closed

Aircraft endpoint#431
valentinoli wants to merge 2 commits into
apis-is:masterfrom
valentinoli:aircraft-endpoint

Conversation

@valentinoli

Copy link
Copy Markdown

Includes the implementation itself in ìndex.js` along with the documentation and integration-test files.

Haven't yet added documentation for the endpoint to the gh-pages branch.

@valentinoli

Copy link
Copy Markdown
Author

Issue reference #430

@MiniGod MiniGod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You got a few lint errors. See the results on circle-ci:
https://circleci.com/gh/apis-is/apis/229

I think you should be able to fix it by running the following:
npm run lint -- --fix

Other than that, this looks good to me.

@MiniGod

MiniGod commented Feb 7, 2018

Copy link
Copy Markdown
Member

Great! But now the build has another error :( It's not very clear from the error why it is failing, but it looks like you're lacking mocks for the HTTP requests to samgongustofa.is. You can, for instance, look at how the horses endpoint has implemented the mocks: https://github.com/apis-is/apis/blob/1fb161a/endpoints/horses/tests/integration_test.js#L22-L41

Basically add multiple nock rules, as well as the fixture files (which is the HTML response from samgongustofa.is).

@valentinoli

Copy link
Copy Markdown
Author

Thanks for the feedback. That's strange since I copied the structure for integration-test.js from the /ship endpoint which also scrapes data from samgongustofa.is, so I naively assumed that would be fine. I'm not familiar with nock, so I'm not sure if I quite understand what you mean, but I'll try to figure it out and follow your advice.

@stale

stale Bot commented Apr 9, 2018

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the wontfix label Apr 9, 2018
@stale stale Bot closed this Apr 16, 2018
@MiniGod

MiniGod commented Feb 4, 2019

Copy link
Copy Markdown
Member

New PR: #480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants