-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature/solutions #8
base: feature/solutions
Are you sure you want to change the base?
Feature/solutions #8
Conversation
Remove solution code, add test scripts
…xercises Revert "Remove solution code, add test scripts"
Included two more exercises with solutions and changed the first exercise to include one of the other two to reduce code complexity. Also, I have updated the fake datasets to work with new tests. |
{ id: 1, name: "Brock", pokemonIds: [74, 95, 44] }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brock does not have a Gloom! ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reeeeally? So it is true!! I need to know pokemons to pass this course :P haha.... I needed this in order to get some variety in my tests.. dunno if we can use someone else, or maybe make up a new trainer.
}) | ||
); | ||
|
||
return getTrainersAndGymsAndPokemons(gyms, trainers, pokemons) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is unreachable code ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be. I was making lots of tests I might have overlooked it. I'll check again.
Co-Authored-By: Rein Op 't Land <Reinoptland@gmail.com>
Co-Authored-By: Rein Op 't Land <Reinoptland@gmail.com>
Co-Authored-By: Rein Op 't Land <Reinoptland@gmail.com>
457a425
to
9aa7382
Compare
The new exercise should ask the students to return a list of trainers that have at least one pokemon.
These new trainer objects should also contain two additional variables, one that is an array and holds the list of their pokemons and the second one is an object that represents their gym.
This branch includes the solution as well as additional commenting for readability