{"action":"created","issue":{"url":"https://api.github.com/repos/hoodiehq/camp/issues/66","repository_url":"https://api.github.com/repos/hoodiehq/camp","labels_url":"https://api.github.com/repos/hoodiehq/camp/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/hoodiehq/camp/issues/66/comments","events_url":"https://api.github.com/repos/hoodiehq/camp/issues/66/events","html_url":"https://github.com/hoodiehq/camp/issues/66","id":183238753,"number":66,"title":"[hoodie-account-server] Add test for GET /accounts/123?include=foobar","user":{"login":"LowProfileDog","id":17463029,"avatar_url":"https://avatars.githubusercontent.com/u/17463029?v=3","gravatar_id":"","url":"https://api.github.com/users/LowProfileDog","html_url":"https://github.com/LowProfileDog","followers_url":"https://api.github.com/users/LowProfileDog/followers","following_url":"https://api.github.com/users/LowProfileDog/following{/other_user}","gists_url":"https://api.github.com/users/LowProfileDog/gists{/gist_id}","starred_url":"https://api.github.com/users/LowProfileDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LowProfileDog/subscriptions","organizations_url":"https://api.github.com/users/LowProfileDog/orgs","repos_url":"https://api.github.com/users/LowProfileDog/repos","events_url":"https://api.github.com/users/LowProfileDog/events{/privacy}","received_events_url":"https://api.github.com/users/LowProfileDog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hoodiehq/camp/labels/Code","name":"Code","color":"222222"},{"url":"https://api.github.com/repos/hoodiehq/camp/labels/up%20for%20grabs","name":"up for grabs","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-15T23:21:52Z","updated_at":"2016-10-23T23:03:35Z","closed_at":null,"body":"### 🎃💻👕 Hacktoberfest: Trick or Treat!\r\nIf you haven’t yet, sign up for [Hacktoberfest](https://hacktoberfest.digitalocean.com/) to earn an exclusive T-Shirt. Plus I’m sure we can teach you a cool trick or two in the process\r\n\r\n### 🤔 What you will need to know\r\nYou should have worked with JavaScript, Node.js and Testing. This is a rather advanced issue, you will need to write tests yourself and then resolve the issue. If you haven’t done that before, better look for another issue :) \r\n\r\nSome knowledge about [Hapi](http://hapijs.com/) will help but you can figure it out if you know the things above :)\r\n\r\nThe `/?include` query parameter is part of the [JSON API specification](http://jsonapi.org/format/#fetching-includes). The spec says\r\n\r\n> If an endpoint does not support the include parameter, it MUST respond with 400 Bad Request to any requests that include it.\r\n\r\nWe don’t test for this specific case yet. But you can look how the test looks like for [`POST /accounts?include=foobar`](https://github.com/hoodiehq/hoodie-account-server/blob/742d3983982dd4e0027731a65278664151fde273/tests/integration/routes/accounts/post-accounts-test.js#L132-L142), it will probably be pretty similar\r\n\r\n### 🎯 The goal\r\n\r\nCreate an integration test for `GET /accounts?include=foobar` and make it pass :)\r\n\r\n### :clipboard: Step by Step\r\n\r\nIf this is your first, welcome :tada: :smile: [Here is a great tutorial](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github) on how to send a pull request using the terminal.\r\n\r\n- [ ] 🙋 **Claim this issue**: Comment below (or assign yourself and continue at step 4 :)  \r\n  Please 🙏 only claim if you want to start working on it during the event.  \r\n  Once claimed we add you as contributor to this repository.\r\n- [ ] 👌 **Accept our invitation** to this repository. Once accepted, assign yourself to this repository\r\n- [ ] 👓 **Please review** our [Code of Conduct](http://hood.ie/code-of-conduct/)  \r\n  In a nutshell: be patient and actively kind with us 😊\r\n- [ ] 🏷  **add the label** `in progress`.\r\n- [ ] 🗜 [**Setup the repository locally**](https://github.com/hoodiehq/hoodie-account-server/blob/master/tests/README.md#testing) and make sure that all tests pass\r\n- [ ] Create the test in [tests/integration/routes/accounts/get-accounts-test.js](https://github.com/hoodiehq/hoodie-account-server/blob/4a84065ec9bdff5271bb1b90b4c92878c47e3c46/tests/integration/routes/accounts/get-accounts-test.js#L286-L288)\r\n- [ ] **Commit the change** with `test(routes): GET /accounts/123?include=foobar` and push it either to your fork or push your new branch. Your tests should fail now\r\n- [ ] 🔀 **Start a Pull Request**. Mention `closes hoodiehq/camp#66` in the description.  \r\n- [ ] If the test passes, all good 👍 If the server does not respond as expected, figure out why and fix it 👍 \r\n- [ ] 🏁 **Done** :+1: Replace the `in progress` label with `ready`. Ask in comments for a review :)\r\n\r\n### 🤔❓ Questions\r\n\r\nPing us in the [Hoodie Chat](http://hood.ie/chat/) or on [Twitter](https://twitter.com/hoodiehq/)"},"comment":{"url":"https://api.github.com/repos/hoodiehq/camp/issues/comments/255621118","html_url":"https://github.com/hoodiehq/camp/issues/66#issuecomment-255621118","issue_url":"https://api.github.com/repos/hoodiehq/camp/issues/66","id":255621118,"user":{"login":"shuhei","id":498635,"avatar_url":"https://avatars.githubusercontent.com/u/498635?v=3","gravatar_id":"","url":"https://api.github.com/users/shuhei","html_url":"https://github.com/shuhei","followers_url":"https://api.github.com/users/shuhei/followers","following_url":"https://api.github.com/users/shuhei/following{/other_user}","gists_url":"https://api.github.com/users/shuhei/gists{/gist_id}","starred_url":"https://api.github.com/users/shuhei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuhei/subscriptions","organizations_url":"https://api.github.com/users/shuhei/orgs","repos_url":"https://api.github.com/users/shuhei/repos","events_url":"https://api.github.com/users/shuhei/events{/privacy}","received_events_url":"https://api.github.com/users/shuhei/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T23:03:35Z","updated_at":"2016-10-23T23:03:35Z","body":"Hello, may I work on this?"}}
{"actor":{"display_login":"shuhei"}}