Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aircraft endpoint #431

Closed
wants to merge 2 commits into from
Closed

Aircraft endpoint #431

wants to merge 2 commits into from

Conversation

valentinoli
Copy link

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
Author

Issue reference #430

Copy link
Member

@MiniGod MiniGod left a comment

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
Copy link
Member

MiniGod commented Feb 7, 2018

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
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
Copy link

stale bot commented Apr 9, 2018

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
Copy link
Member

MiniGod commented Feb 4, 2019

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