-
Notifications
You must be signed in to change notification settings - Fork 62
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
CodeReview #26
base: master
Are you sure you want to change the base?
CodeReview #26
Conversation
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.
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.
@@ -128,7 +128,7 @@ escribe('data.orderNumber', () => { | |||
}); | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
muy bien por los tests
@@ -1,16 +1,16 @@ | |||
import pokemon from './data/pokemon/pokemon.js'; | |||
//console.log(pokemon); | |||
// console.log(pokemon); | |||
|
|||
const data = { | |||
saveNumber: (searchNumber) => { |
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.
Muy bien los nombres de las funciones en ingles
@@ -1,16 +1,16 @@ | |||
import pokemon from './data/pokemon/pokemon.js'; | |||
//console.log(pokemon); | |||
// console.log(pokemon); | |||
|
|||
const data = { |
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.
No es necesario crear un objeto, se pueden exportar las funciones e forma independiente
src/data.js
Outdated
orderFilter = pokemon.sort((a, b) => { | ||
if (a.name > b.name) { | ||
return 1; | ||
} |
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.
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'; |
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.
XD
@@ -0,0 +1,234 @@ | |||
@import url('https://fonts.googleapis.com/css?family=Saira+Condensed&display=swap'); |
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.
Bien por el uso de fuentes externas
src/main.js
Outdated
let overlay = document.querySelector('#profileContainer'); | ||
let popup = document.getElementsByClassName('profileCard'); |
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.
Preferible usar querySelector, ya que getElementsByClassName devuelve un tagList (lista extraña que no es un array)
src/main.js
Outdated
let newPopup = popup[popup.length-1]; | ||
//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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si buscamos un lemeno en especifico es mejor darle un id
src/main.js
Outdated
overlay.classList.remove('active') | ||
newPopup.classList.remove('active') |
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.
Bien el uso de classList
src/main.js
Outdated
const profileContainer = document.createElement("div"); | ||
profileContainer.className = "profileContainer"; | ||
profileContainer.id = "profileContainer"; | ||
document.body.appendChild(profileContainer); |
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.
Muy bien
Falta depurar código y hacer pruebas.