Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DESCRIPTION
Nombre: Aitor Zaldua
Usuario Platzi: @aitor_
Usuario Discord: aitor#7507
Solución al reto:
Reto #1:
Agregado evento eventNewPokemon que se dispara en la funcion createPokemon con el emmit correspondiente.
Reto #2:
Agregado require => El id debe ser mayor que 0.
Agregado require => El nombre no puede ser espacios en blanco.
Agregado require => El nombre debe tener, al menos, 3 caracteres.
Reto #3:
Agregado array con el nombre de las habilidades.
Agregado mapping para incluir descripción a las habilidades.
Reto #4:
Agregado array para incluir tipos de pokemons.
Agregado array para incluir debilidades.
Reto: