CodeReview#26
Conversation
HectorBlisS
left a comment
There was a problem hiding this comment.
Muy bien las descripciones en los commits, lastima que están en español, evítenlo en el siguiente proyecto. Se nota el trabajo progresivo y duro y también el trabajo en equipo, felicidades por el producto final, muy completo.
|
|
||
| it('should return Bulbasur first and Ivysaur after', () => { | ||
| expect(pokemon).toHaveProperty('weaknesses', 'Ice'); | ||
| expect(pokemon.id).toBe('1' , '2'); |
There was a problem hiding this comment.
muy bien por los tests
| // console.log(pokemon); | ||
|
|
||
| const data = { | ||
| saveNumber: (searchNumber) => { |
There was a problem hiding this comment.
Muy bien los nombres de las funciones en ingles
| //console.log(pokemon); | ||
| // console.log(pokemon); | ||
|
|
||
| const data = { |
There was a problem hiding this comment.
No es necesario crear un objeto, se pueden exportar las funciones e forma independiente
| orderFilter = pokemon.sort((a, b) => { | ||
| if (a.name > b.name) { | ||
| return 1; | ||
| } |
There was a problem hiding this comment.
Se entiende porque se hace esto evitando el ordenado default unicode?
| @@ -1,5 +1,5 @@ | |||
| // importamos la función `example` | |||
| import { data } from "../src/data"; | |||
| import { data } from '../src/data'; | |||
| @@ -0,0 +1,234 @@ | |||
| @import url('https://fonts.googleapis.com/css?family=Saira+Condensed&display=swap'); | |||
There was a problem hiding this comment.
Bien por el uso de fuentes externas
| let overlay = document.querySelector('#profileContainer'); | ||
| let popup = document.getElementsByClassName('profileCard'); |
There was a problem hiding this comment.
Preferible usar querySelector, ya que getElementsByClassName devuelve un tagList (lista extraña que no es un array)
| //console.log(newPopup); | ||
| let btnClosePopup = document.getElementsByClassName('btn-cerrar-popup') | ||
| let btnClosePopup = document.getElementsByClassName('btn-cerrar-popup'); | ||
| let newBtnClose = btnClosePopup[btnClosePopup.length-1]; |
There was a problem hiding this comment.
Si buscamos un lemeno en especifico es mejor darle un id
| overlay.classList.remove('active') | ||
| newPopup.classList.remove('active') |
There was a problem hiding this comment.
Bien el uso de classList
| const profileContainer = document.createElement("div"); | ||
| profileContainer.className = "profileContainer"; | ||
| profileContainer.id = "profileContainer"; | ||
| document.body.appendChild(profileContainer); |
Falta depurar código y hacer pruebas.